- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
Two days ago I posted in this forum asking about saving a copy of a part from a drawing: https://forums.autodesk.com/t5/inventor-forum/save-copy-of-part-from-drawing/m-p/8230281#M709864
In that post, I was refering to a VBA code.
In the meantime, after doing a lot research, I still can't find nothing helpful.
I'd like to try to use iLogic do accomplish my goal, wich is:
- Have a drawing opened;
- Run rule (wich does the following):
- Save copy of drawing as .pdf (already found how this one is done);
- Open the part associated to the drawing (they share the same name and folder ; found how it is done as well);
- Save copy of part as .step (I have a rule in part to do so);
- Close part.
iLogic Rule
Dim oPart As Document Dim oPartPath As String ' Get drawing path oPartPath = ThisDoc.PathAndFileName(False) & ".ipt" ' Open Part oPart = ThisDoc.Launch(oPartPath)
From now on, the problem is to set the opened part as active(?), so I can run rules that are in the opened part.
I'm fairly amateur when it comes to coding, but I try to understand every line of code.
Thanks in advance,
João
João Silva
Mechanical Engineer
Solved! Go to Solution.