API path to iproperties values

API path to iproperties values

john
Explorer Explorer
543 Views
6 Replies
Message 1 of 7

API path to iproperties values

john
Explorer
Explorer
I'm trying to write a macro that needs a path to read/write to the iproperties within a .ipt file. For instance I want to be able to change the Title, the keywords, and the vendor of a .ipt file using visual basic code. I tried using ThisApplication.ActiveDocument.PropertySets.Item.Item.Value and other variations, but cannot seem to find a valid path. If you have knowledge of this could you also provide a sample of code?
0 Likes
544 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
The online help has a good example of how to access properties.

One example would be

oPropsets.Item("{32853F0F-3444-11D1-9E93-0060B03C1CA6}").ItemByPropId(kEngin
eerDesignTrackingProperties).Value = "Stuff"


--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
"pharmer123" wrote in message
news:f1848f9.-1@WebX.maYIadrTaRb...
> I'm trying to write a macro that needs a path to read/write to the
iproperties within a .ipt file. For instance I want to be able to change the
Title, the keywords, and the vendor of a .ipt file using visual basic code.
I tried using ThisApplication.ActiveDocument.PropertySets.Item.Item.Value
and other variations, but cannot seem to find a valid path. If you have
knowledge of this could you also provide a sample of code?
0 Likes
Message 3 of 7

Anonymous
Not applicable
Have a look in Inventor Customer files, named
"Inventor/VB(A)/Class to handle Document Properties"
Anton
0 Likes
Message 4 of 7

Anonymous
Not applicable
Anton! How have you been?

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
"avbuiten" wrote in message
news:f1848f9.1@WebX.maYIadrTaRb...
> Have a look in Inventor Customer files, named
> "Inventor/VB(A)/Class to handle Document Properties"
> Anton
0 Likes
Message 5 of 7

Anonymous
Not applicable
Bad, but the head above see level again.
Enjoying solving Inventor/VB(A) problems.
Happy seeing you still (very) active in these groups.
Partly working on EDM/AutoCAD projects, and in due time EDM/Inventor projects.

Greetings,
Anton
0 Likes
Message 6 of 7

Anonymous
Not applicable
Sounds interesting. Let me know about the EDM- Inventor. We currently EDM
our parts from AutoCAD.

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
----------------------------------------------------------------------------
------
"avbuiten" wrote in message
news:f1848f9.3@WebX.maYIadrTaRb...
> Bad, but the head above see level again.
> Enjoying solving Inventor/VB(A) problems.
> Happy seeing you still (very) active in these groups.
> Partly working on EDM/AutoCAD projects, and in due time EDM/Inventor
projects.
> Greetings,
> Anton
>
0 Likes
Message 7 of 7

Anonymous
Not applicable
Hi Sean,
Well i am still learning the howto, but more important the why? It's a complete different material and it take me a while to think like a designer for it's need to store and retrieve their documents, the relations between drawings and other documents, many different procedures for workflow etc. Which EDM system do you use? (if i may ask)
Anton
0 Likes