Message 1 of 6
GeomToDXFCommand Problem

Not applicable
01-18-2008
05:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This code:
----- code ----
Call ThisApplication.CommandManager.PostPrivateEvent(PrivateEventTypeEnum.kFileNameEvent, "C:\File.dxf")
Dim oCtrlDef As ControlDefinition
Set oCtrlDef = ThisApplication.CommandManager.ControlDefinitions.Item("GeomToDXFCommand")
Call oCtrlDef.Execute
----- code ----
works fine on VBA (inventor 2008), but when I try making this a Add-in it doesnt work fine.
In a Add-in, it works fine on a OPENED part. It doesnt work on a ACTVATED part inside an assembly.
What is the problem???
----- code ----
Call ThisApplication.CommandManager.PostPrivateEvent(PrivateEventTypeEnum.kFileNameEvent, "C:\File.dxf")
Dim oCtrlDef As ControlDefinition
Set oCtrlDef = ThisApplication.CommandManager.ControlDefinitions.Item("GeomToDXFCommand")
Call oCtrlDef.Execute
----- code ----
works fine on VBA (inventor 2008), but when I try making this a Add-in it doesnt work fine.
In a Add-in, it works fine on a OPENED part. It doesnt work on a ACTVATED part inside an assembly.
What is the problem???