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: 

Using a template with GeomToDXFCommand

2 REPLIES 2
Reply
Message 1 of 3
doum90
292 Views, 2 Replies

Using a template with GeomToDXFCommand

Hello everyone,

 

I currently have a small program to export the selected face with the GeomToDXFCommand. I'd like that program to use an autocad template. I've seen that when you export face as, you can actually tell Inventor to use a specific autocad template. In all the example I've seen of people using this command, I didn't find one where someone was using a template. Here is a part of my code:

 

'Get the active document. This assumes it is a part document.
Dim inv_app As Inventor.Application
inv_app = System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")

Dim odoc As PartDocument
odoc = inv_app.ActiveDocument

Dim obaseFace As Face
obaseFace = odoc.SelectSet.Item(1)
fileNameAndPath = txtPath.Text & "\" & txtNomLaser.Text & ".dwg"
inv_app.CommandManager.PostPrivateEvent(PrivateEventTypeEnum.kFileNameEvent, fileNameAndPath)

Dim oCtrlDef As ButtonDefinition
oCtrlDef = inv_app.CommandManager.ControlDefinitions.Item("GeomToDXFCommand")

 

Thank you

2 REPLIES 2
Message 2 of 3
doum90
in reply to: doum90

Anyone has an answer for me?
Message 3 of 3
doum90
in reply to: doum90

Last try, anyone?

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

Post to forums  

Autodesk Design & Make Report