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
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
Can't find what you're looking for? Ask the community or share your knowledge.