How to do API access to the Styles Library in IV10 and/or up?

How to do API access to the Styles Library in IV10 and/or up?

Anonymous
Not applicable
214 Views
2 Replies
Message 1 of 3

How to do API access to the Styles Library in IV10 and/or up?

Anonymous
Not applicable
Hi,

for some reason I want to access the Styles Library (read access, maybe write later).
I like to query some things like Layers for drawings, Parts Lists, Materials etc.

Some of these things that are locally stored in some types of documents are available through that specific document-object (I haven't done this yet but I have seen the objects in the API).

But how do I access the Styles Library?

Has anyone a little help...

CU,
Guido
0 Likes
215 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
The various styles collections under DrawingDocument.StylesManager provides
a composite view of styles in the document as well as in the library. In
Inventor 2008, you will find a DrawingStylesManager.Styles property that
returns all the styles. The Style.StyleLocation property indicates whether
the style is local to the document, is in the library or both.

Sanjay-

wrote in message news:5683631@discussion.autodesk.com...
Hi,

for some reason I want to access the Styles Library (read access, maybe
write later).
I like to query some things like Layers for drawings, Parts Lists, Materials
etc.

Some of these things that are locally stored in some types of documents are
available through that specific document-object (I haven't done this yet but
I have seen the objects in the API).

But how do I access the Styles Library?

Has anyone a little help...

CU,
Guido
0 Likes
Message 3 of 3

Anonymous
Not applicable
Hi,

thanks a lot! I'll try it out...

By,
Guido
0 Likes