Open Part in Workspace without Full File PAth

Open Part in Workspace without Full File PAth

johnster100
Collaborator Collaborator
373 Views
1 Reply
Message 1 of 2

Open Part in Workspace without Full File PAth

johnster100
Collaborator
Collaborator

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

0 Likes
374 Views
1 Reply
Reply (1)
Message 2 of 2

humbertogo
Advocate
Advocate

you can use the DesignProjectManager

DesignProjectManager.ActiveDesignProject.WorkspacePath

 

0 Likes