Choosing document type using Python and the API

Choosing document type using Python and the API

nj21997
Participant Participant
418 Views
3 Replies
Message 1 of 4

Choosing document type using Python and the API

nj21997
Participant
Participant

Hi,

 

I'm having difficulty importing an assembly file into python. There seems to be a conflict between the result when I use Document.Type and Document.DocumentType. The second recognises that the file is an an assembly. But the first returns the ObjectType which is what I need so that I can manipulate the assembly.

 

Does anyone know how I can force the object type to change?

 

 

 

0 Likes
Accepted solutions (1)
419 Views
3 Replies
Replies (3)
Message 2 of 4

arron.craig
Collaborator
Collaborator
Accepted solution

You will probably have better luck posting in the Inventor API forum here:

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/bd-p/120

Message 3 of 4

nj21997
Participant
Participant
Cheers!
0 Likes
Message 4 of 4

Michael.Navara
Advisor
Advisor

Please provide some code snippet and be more specific, because I don't understand what do you want to do.

Both values Document.Type and Document.DocumentType can't be changed in any way because it is read only.

0 Likes