Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C# check if assembly is a factory layout

4 REPLIES 4
Reply
Message 1 of 5
gert-leonvanlier
507 Views, 4 Replies

C# check if assembly is a factory layout

gert-leonvanlier
Collaborator
Collaborator

I am writing an addin for our company specific for Factory Layouts. Is there a way in the API of Inventor or Factory Design Utilities to check if the current document is a Factory Layout? Of course I can check wether it's a ipt, iam, idw or dwg, but I don't know how to check further.

0 Likes

C# check if assembly is a factory layout

I am writing an addin for our company specific for Factory Layouts. Is there a way in the API of Inventor or Factory Design Utilities to check if the current document is a Factory Layout? Of course I can check wether it's a ipt, iam, idw or dwg, but I don't know how to check further.

Labels (4)
4 REPLIES 4
Message 2 of 5

JelteDeJong
Mentor
Mentor

i think you should check the "Document.SubType" property. At this site you can find more information.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes

i think you should check the "Document.SubType" property. At this site you can find more information.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 5

gert-leonvanlier
Collaborator
Collaborator

I thought of something similar, but there is no mentioning of Factory Desgin Utitilities on the link or in the file mentioded there (see attachment).

0 Likes

I thought of something similar, but there is no mentioning of Factory Desgin Utitilities on the link or in the file mentioded there (see attachment).

Message 4 of 5

JelteDeJong
Mentor
Mentor

I don't have any "Factory Desgin Utitilities" files. Therefor i cant help you check. Did you compare the strings you will get back from the "Document.SubType"? The post is very old and maybe the "DocCLSIDs.txt" is not updated. Other wise i will not be able to help you.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes

I don't have any "Factory Desgin Utitilities" files. Therefor i cant help you check. Did you compare the strings you will get back from the "Document.SubType"? The post is very old and maybe the "DocCLSIDs.txt" is not updated. Other wise i will not be able to help you.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 5 of 5

Darkforce_the_ilogic_guy
Advisor
Advisor

I have not been able to find any properties ... but maybe there still a few way you can do this ... first Factory have an special groudn plan... maybe an simple check if this is off or on ...if it is not an factory file..with check will fail and you know is it not an factory  and you if it is ... it will knwo it is an factory.. you  can it is an assambly files with doctype ... so you do not check all file if they have an factory goundplane

 

 

Second thing if this for som reason does not work .... you might simple add your our properties to your factory.

 

or if you have a system ... like all factory part number star with 3  ... you can use that ever system you use tell your program if it is an factory or not ...  not as safe .. but it might work for you 

0 Likes

I have not been able to find any properties ... but maybe there still a few way you can do this ... first Factory have an special groudn plan... maybe an simple check if this is off or on ...if it is not an factory file..with check will fail and you know is it not an factory  and you if it is ... it will knwo it is an factory.. you  can it is an assambly files with doctype ... so you do not check all file if they have an factory goundplane

 

 

Second thing if this for som reason does not work .... you might simple add your our properties to your factory.

 

or if you have a system ... like all factory part number star with 3  ... you can use that ever system you use tell your program if it is an factory or not ...  not as safe .. but it might work for you 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report