This worked for me finally. https://stackoverflow.com/a/8341110
There are so many little steps to keep people safe etc. that I didn’t want to lose sight of theses instructions. Also- it is very useful for others to know. So, whey not blog here about it and help others along. This was made withe good advise of tall the moms and dads on the trip and one of them is a rafting enthusiast 🙂
For some reason, I have never really understood the whole filtered selection sets – it was actually some syntax issues. If you don’t pass the correct types into SS.Select … things go very wrong. Here is some code that works. Note that ClearSelectionSet merely pre-deletes the named selection set. A useful links to shed some light on dxf codes is here. Here is the main article that solved my dilemna, I copied and pasted it and it worked – why didn’t mine? Not sure – need to get on with life. 🙂 . Continue reading
Over the past 6 months, I have had to resort to command line options for plugins from CadWorx and others. The one was 2DREPH and I wanted to do it on X viewports. I had these viewports in an array, but how can I make a command line string that would consistently work? Well, it came down to making a selection set, then making a group with the same name (prefixed with lets say “GRP”), then using the commandline selection based on group. So, for instance, when prompted for objects here is a selection example:
“SELECT G GRPMYFAVGROUP ” (note the 2 spaces at the end)
Well if that isn’t handy. Use ‘vbastmt’ on the command line and put VBA with its in-line separator (colon) and bob’s ur uncle. Click here for source.
So I am working with CadWorx. I needed a refresher on my Autocad XData – I suspected that is where the data was stored as CadWorx files seem to have a 3D shape and a line grouped together … but why? Well, the line had XDATA attached to it was my suspicion and I was right. Here are some links that I found helpful to get me re-oriented after 4 years of needing this info …
- XData organization straight from AutoCAD
- VBA / ActiveX Starter to get XData
- How to know what registered Apps exist in your file/AutoCad install
- VBA variable types and what >8197 means – it means 8192 + 5 (vbArray + vbDouble)
- Retrieving xData – to take a peek under the hood of a component
Here are some websites with tips on how to make Restful Services.
So you want to create a service in C#? well look no further. This article is amazing and will take you through each step clearly and let you know how to make the service. Highly recommend for creating services in the future.
The following are Error codes used by James’ programs across platforms:
/// Error Code SE-JEHG-0001 = Programer needs to implement XLVBAInitializer method before running code.
/// Error Code SE-JEHG-0002 = User did not provide a destination for StackEm.
/// Error Code SE-JEHG-0003 = VBA constructed name for destination of stackem is invalid
This list is in progress.