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