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: 

iLogic: Modify iProperties of a 'model' that is associated to the drawing view

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
john.laidler
740 Views, 2 Replies

iLogic: Modify iProperties of a 'model' that is associated to the drawing view

I'm trying to do this with iLogic, and i'm not getting anywhere.  What I need help with, is to be able get to the iProperties of an associated model that is referenced into a drawing file.  I want to make it easier to update the iProperties from the drawing file, without having to open the model file. 

 

Any help would be greatly appreciated!!!

 

Thanks.

John Laidler
AutoCAD, Inventor and Vault



Please use "Accept as Solution" & give "Kudos" if this response helped you.
2 REPLIES 2
Message 2 of 3
jdkriek
in reply to: john.laidler

Here you go, simple example:

 

modelName = IO.Path.GetFileName(ActiveSheet.View("VIEW1").ModelDocument.FullFileName)
iProperties.Value(modelName, "Summary", "Title") = "Test"
iLogicVb.UpdateWhenDone = True
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 3 of 3
jddickson
in reply to: john.laidler

There are 3 party software companies that do exactly what you want. Just do a search for an “Inventor property manager”.

 

Kudos to JD Kriek I would use the same code. 

 

If you want to make it a little easier using iLogic I would suggest using “Forms”.

First make a template that has “User Parameters” that will drive data into your iproperties

Second link all your to your parameters using iLogic (See Image Below).

 

New Pic 1.jpg

 

Third move your parameters into a form so you can update them with ease 

 

New Pic 2.jpg

 

Now you have your own little “Property Manager” on the drawing level that updates the model.

 

New Pic 3.jpg

 

I hope this helps.

 

Thanks

JD

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

Post to forums