Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Open Part in Workspace without Full File PAth

1 REPLY 1
Reply
Message 1 of 2
johnster100
264 Views, 1 Reply

Open Part in Workspace without Full File PAth

Hi Guys,

I use iLogic to open up some parts, update them, then insert them into an assembly. All the parts are in different folders depending on which assembly they are contained.

 

Is there a way to open up the part based on the filename without giving the full file path if I have the project file set?

 

I.e.      Part 1 filename = C:\Test\Assy1\Part1.ipt

           Project File Location = C:\Test

 

Could I open this file using iLogic without hard coding the foldername 'Assy1'?

 

 

somthing along the lines of :- Doc.Open(ThisDoc.Workspace() & "Part1.ipt")

 

thanks,

John

1 REPLY 1
Message 2 of 2
humbertogo
in reply to: johnster100

you can use the DesignProjectManager

DesignProjectManager.ActiveDesignProject.WorkspacePath

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report