I am trying to find an ilogic for part proparty entry as soon as I create new part/assy.
I know it is possible by Event triger-> New Document . Can anybody help??.
Thanks in advance,
What property do you want it to fill out?
and what version of Inventor are you on?
Thanks for reply.
I want to add Project, Summary and some custom iproperty. If you have a code, please send me since I am not familier with programming.
Windows -7 64bit
Well 2011 sums it up for me a little on this one.
With 2012 you can have a Form pop up and ask you to fill these out. With 2011 you have a lot more work to get the same result.
You might want to look into iPropWiz to do this for you. It would be easier than making your own .dll form and the cost is pretty cheap.
This quick part file I made for you has Project and all of the Summary tab iprops. I did not add any custom iprop as you did not specify. It is easy to add. Simply edit the iLogic Form. There is no programming knowledge needed. The Event Trigger is set to New Doc so you will need to place this in your templates folder if you want it to run when starting a new file (from template). Otherwise you can run the Form manually by simply clicking on it. Obviously you would need the iLogic Browser visible.
Edit - Oops!! I didn't realize you were on 2011 Inv. That sucks (as far as flexibility with iLogic goes). However at least you're using a more stable build than 2013 haha!
I don't think that will work for him since 2011 didn't have Forms directly tie in.
I know. I didn't realize he was on 2011 ATT. I was editing my post as you typed this hehe
if you want the ilogic code is pretty basic to do this. Depending on how fancy you want to get the code you'll want to use is pretty much:
iProperties.value("Project", "Part Number") = InputBox("What is the Part Number", "Part Number", "Enter the part number here")
I am sure there is a more efficient way to do this for all the parameters you want (maybe the inputlistbox command?, or even a form in 2012) but this should get you rolling.
I got it Pelase find the below code.
iProperties.Value("Summary", "Title")=InputBox("Enter the title","ilogic",Title)
iProperties.Value("Summary", "Subject")=InputBox("Enter Second Line Description","ilogic",Subject)
iProperties.Value("Project", "Part Number")=InputBox("Enter the Part Number","ilogic", PartNo )
iProperties.Value("Project", "Project") = InputBox("Enter the Project Number", "ilogic", ProjectNo)
iProperties.Value("Project", "Stock Number") = InputBox("Enter W2T Number", "ilogic", StockNumber)
iProperties.Value("Project", "Description")=InputBox("Enter Discription", "ilogic",Description)
iProperties.Value("Custom", "DIST A")=InputBox("Enter Unit","ilogic",DISTA)
Next question is how to bring all this prompt entry in one window, any suggestion, highly appreciable.
I don't know of any other way other than creating a DLL form and loading it with code. That is why we hoped you were on 2012
To reitterate though, if you want a lot more control over a lot of things as well as what this thread is about you really should check out iPropWiz for Inventor.