Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hide Center of Gravity in IDW Drawing View

2 REPLIES 2
Reply
Message 1 of 3
ccoomes
1358 Views, 2 Replies

Hide Center of Gravity in IDW Drawing View

I have been able to add the Center of Gravity to a Selected IDW Drawing view with the following VBA code:

 

Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oSelectedView As DrawingView
Set oSelectedView = oDoc.SelectSet.Item(1)

Dim oAddCofG As Object
Set oAddCofG = oDoc.ActiveSheet.Centermarks.AddByCenterOfGravity(oSelectedView)

 

Now comes the tricky bit, does anyone know how to either hide or Remove the Center of Gravity with VBA code?

You can manually turn it off, but I cannot see a logical method to turn it off in VBA.

 

Does anyone know how we can turn off the Center of Gravity off from a sinlge Macro click?

2 REPLIES 2
Message 2 of 3
Mark_Wigan
in reply to: ccoomes

i haven't tried that but i will give it a bit of a go in the next day or two.

 

in the meantime maybe shoot over & post to the customisation area...

http://forums.autodesk.com/t5/Inventor-Customization/bd-p/120

 

or run the SDK utility that allows commands to be traced and see if you can reverse engineer from the user accessable commands?

( look in C:\Users\Public\Documents\Autodesk\Inventor 2014\SDK\DeveloperTools\Tools\EventWatcher ) or whatever version you have...

best regards,
- Mark

(Kudo or Tag if helpful - in case it also helps others)

PDSU 2020 Windows 10, 64bit.

Message 3 of 3
Jon.Dean
in reply to: ccoomes

I see the code to add the centre mark but I don't see anything to remove it once placed.

I don't think it is possible.

Jon.



Jon Dean

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

Post to forums  

Autodesk Design & Make Report