Detecting Inventor mirror from event

Detecting Inventor mirror from event

zadazLWJJ4
Enthusiast Enthusiast
894 Views
7 Replies
Message 1 of 8

Detecting Inventor mirror from event

zadazLWJJ4
Enthusiast
Enthusiast

Is it possible to detect Inventor mirror from events? At least the "OnNewDocument" event is fired but that does not seem to have the information about mirroring. Any other ways to detect mirroring than events?

0 Likes
Accepted solutions (1)
895 Views
7 Replies
Replies (7)
Message 2 of 8

b_sharanraj
Advocate
Advocate

 

Do you want to find the Mirror Feature in a Component?

Regards

B.Sharan Raj

0 Likes
Message 3 of 8

frederic.vandenplas
Collaborator
Collaborator

You could try to catch the command that is excuted. You can track it with the eventwatcher tool

 

Inventor SDK 
The Inventor SDK is installed by default when you install Inventor.  It contains additional sample programs and tools to use when programming Inventor.  The SDK is installed in one of the following locations:

  • Win7 - C:\Users\Public\Documents\Autodesk\Inventor <version>\SDK
  • WinXP - <Inventor install folder>\SDK

When installed, the SDK folder contains three files; DeveloperTools.msi, UserTools.msi, and SDK_Readme.htm. To access the SDK information you need to install one or both of the .msi files, which can be installed by double-clicking the .msi file in Explorer.

 

Tools 
This folder contains two programs that are useful utilities when working with Inventor's API.

The first, called EventWatcher, allows you to specify and watch certain events as they occur within Inventor. This tool is very useful when you're writing a program that will be using events within Inventor. You can use this tool to better understand the event behavior so you can know how to take advantage of it within your programs.

 

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1079044

 

If you think this answer fullfilled your needs, improved your knowledge or leads to a solution,
please feel free to "kudos"
0 Likes
Message 4 of 8

zadazLWJJ4
Enthusiast
Enthusiast

Checking mirror feature from the component would help. Then I could check from the new component whether it is mirrored component. How can I do that?

 

 

0 Likes
Message 5 of 8

b_sharanraj
Advocate
Advocate

You need to Check the Part / components Mirrored in Assembly is it?

 

Checking the Mirror Feature will help you only inside the Part / Component, it'll not reflect when the Part / Component is mirrored in Assembly.

Regards

B.Sharan Raj

0 Likes
Message 6 of 8

zadazLWJJ4
Enthusiast
Enthusiast

Well knowing if the part is mirror in assembly would help.

 

What I would actually need is to find a way to check if the new occurrence from "AssemblyEvents.OnNewOccurrence" event is mirror.

0 Likes
Message 7 of 8

zadazLWJJ4
Enthusiast
Enthusiast

Anyone? It looks that "MirrorFeatures" under "Definitions" is always pretty much empty. Any other place from where I could check if the component is mirrored?

0 Likes
Message 8 of 8

zadazLWJJ4
Enthusiast
Enthusiast
Accepted solution

It looks that the _AssemblyDocument nor the ComponentOccurrence knows anything about this. I will rely on commandmanagers activecommand to check which command is being run and act based on that.

0 Likes