Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding Custom iproperties with iLogic

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
nickolas.jaderas
1591 Views, 3 Replies

Adding Custom iproperties with iLogic

Hi!

Is it possible to automatically add custom iproperties using iLogic?

 

I have a rule thats adds text to a propery, but when I run the rule in an old partfile i get the error:

"Can't find a property named DrawingNo"

 

Is there something like:

"Create iProperties.Value("Custom", "DrawingNo")"?

3 REPLIES 3
Message 2 of 4

Read Up on this article:

http://modthemachine.typepad.com/my_weblog/2010/02/custom-iproperties.html

 

All of the VB stuff that Brian describes can be applied to iLogic. Just remember to observe VB.net rules (i.e. 'Get' and 'Set' aren't required) and don't forget that you can use iLogic's built in functions to get the current document.

 


Autodesk Industry Marketing Manager UK D&M
Opinions are my own and may not reflect those of my company.
Linkedin Twitter Instagram Facebook Pinterest

Message 3 of 4

Super!

I will try read and try the examples:)

 

actually what i wanded it to do: (for using the substitution function in the partlist)

 

if iProperties.Value("Custom", "Part have drawing") = True
iProperties.Value("Custom", "DrawingNo")= "=ACC TO DWG <Project>-<SubNo>-<ItemNo>"
else if iProperties.Value("Custom", "Part have drawing") = False
iProperties.Value("Custom", "DrawingNo")= ""
end if

Message 4 of 4

in the tutorial not included how to delete the custom properties.

can anyone help me?

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

Post to forums  

Autodesk Design & Make Report