Click Continue Reading for … welll more on how to do it. It takes about 5 minutes once you have done it once. Continue reading
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
It has been a mystery on how to get the version number that is in Visual Studio (eg 188.8.131.52) to show. Now I can use a default method to go and get that or have a “version” method in everything that I build. For now, I have a VBA way of getting it. I would prefer to make a method in the c# class called “version” and put it in all my products – that way if I make .version() exposed to the COM/VBA world, I can still get it from VBA. Here is something I found which will do the trick in c#.
So I am having some troubles and am learning too much about old technology. In short – my interface is COM visible to my VBA in my Excel code, but not the class. Crap – add the word public in front of class – fixed it. None-the-less here is a blog of what helped me solve my issue. I WANT (insist) early binding (aka intellisense 🙂 ) (Something close to my issue). Want to know even more … look at the links at the bottom of this article.
First – set up things properly.
- Have a GUID for the interface IMyInterface and on the class MyClassO
- Have the dual interface turned on on the interface and class