iproperty location property

iproperty location property

Anonymous
Not applicable
966 Views
3 Replies
Message 1 of 4

iproperty location property

Anonymous
Not applicable

I have what I hope is an easy problem. I have assemblies that have one to ten standard parts in it. When I insert this assembly into a master assembly I am making a copy of the assembly and all included parts, renaming the parts by adding an order number to it and saving them to the job folder.

 

This worked fine until we started building new assemblies that used “standard” parts that were located in folders outside of the assembly folder. I didn’t think this would be a problem as I was using ilogic to perform all of these functions. So I tried accessing the “location” iproperty in my rule to find the path of the part to copy but it give me the error that it cannot find a property with that name.

 

Any ideas would be appreciated.

 

0 Likes
967 Views
3 Replies
Replies (3)
Message 2 of 4

HermJan.Otterman
Advisor
Advisor

why do you need to copy standard parts?? normally you re-use them, so skip the copy of them

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes
Message 3 of 4

Anonymous
Not applicable

thanks for the reply,

 

I probably should have added a little more to the standard part definition. When we copy these assembly and parts into a projects folder, these standard parts may end up being modified to customer design (extra holes, cutouts, etc). Our assemblies and standard parts are a launching point. This is the reason for making a copy each time. Sorry, i should have been clearer up front.

 

 

0 Likes
Message 4 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

Hi Mark,

 

There is no API to return "Location" property from iProperty.

 

In iLogic, the following code returns path with filename and extension also.

 

ThisDoc.PathAndFileName(True)

 

In iLogic, the following code returns only path of file.

 

ThisDoc.Path

Please feel free to contact if there is any doubt.

 

If solves your problem, click on "Accept as solution" / give a "kudo"

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes