Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everybody,
i have an idea and perheps someone can tell me if this is possible or not.
I have an assembly open.
In the asssembly are part components and sometimes subassemblys with part components
My Idea is now to start an iLogic rule, or vba macro.
then pick a part
after that a drawing opens.
I such for a example and found a little bit where I can pick a part.
but I can't find something where I open a drawing from the part.
found this as example
Dim comps As ObjectCollection Dim comp As Object comps = ThisApplication.TransientObjects.CreateObjectCollection While True comp = ThisApplication.CommandManager.Pick( SelectionFilterEnum.kAssemblyOccurrenceFilter, "Select a component") ' If nothing gets selected then we're done If IsNothing(comp) Then Exit While comps.Add(comp) End While ' If there are selected components we can do something For Each comp In comps comp.delete Next
It works and I can pick a part, but I don't know who I can open the drawing from the part.
I think it must be at the position where comp.delete
Hope it is not to strange.
thanks for reading
Jörg

Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault
Solved! Go to Solution.