Iproperties and Ilogic

Iproperties and Ilogic

SofiaGrave4819
Enthusiast Enthusiast
525 Views
1 Reply
Message 1 of 2

Iproperties and Ilogic

SofiaGrave4819
Enthusiast
Enthusiast

hello to all

 

I have a form that is loading automaticly in my part model.

where i write the part number, description, project and custom titles.

my questions are:

1 - when i write the part number i would like then when i click apply it opens the save box with the same partnumber.

2 - it's possible to check-in the file during the saving and keeping the file checkout?

3 -  i would like that some of the properties would be transfer to the drawing, like the descripion and the project (this two are from the part properties.

4 - transfer also for the drawing the custom titles to the custom iproperties of the drawing as pre fill in.

 

my for is in the capture picture

 

thanks to all

 

Sofia Grave

 

 

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

xiaodong_liang
Autodesk Support
Autodesk Support

Hi, 

 

Frankly, I am trying to answer something about your questions:

 

1 - when i write the part number i would like then when i click apply it opens the save box with the same partnumber.

     Do you mean to save the current file to a new file with the name which has the partnumber? If yes, you can just call     Document.SaveAs("newfilename",True)

 

2 - it's possible to check-in the file during the saving and keeping the file checkout?

    check-in out will need Vault API. Please post the question in Vault board

 

3 -  i would like that some of the properties would be transfer to the drawing, like the descripion and the project (this two are from the part properties.

    This can be done  directly:  get the properties of the part, get the properties of the drawing, copy the corresponding properties.

 

4 - transfer also for the drawing the custom titles to the custom iproperties of the drawing as pre fill in.

      sure you can do this. get the custom property set of the drawing, add them one by one.

 

For 3,4 I suggest you take a look API help reference, or refer to this video

http://download.autodesk.com/media/adn/Autodesk_Inventor_API_Module2_Common_Document_Functionality_1...

0 Likes