|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
I have an assembly imported from SolidWorks that has the same part in it many times. I am trying to create an onClick interactor so no matter which copy of the part you click on it takes you to a new page. I have used the mesh name as the target, but it only works for one copy of the part, all of which have the same mesh name. Is there a way of assigning a different mesh name to each copy of a part? I could go back into SolidWorks and rename each instance of the part so Viewpoint thinks they are all different, but that would take a long time. Any help in finding an easy way out would be greatly appreciated.
Thank you |
||
|
|
Member |
Are all the meshes part of one instance? If not I think you can safely rename the instances and target those... otherwise yes you'll have to go back into SolidWorks and rename the meshes. I cannot think of another work around, sorry.
|
|||
|
|
Member |
Thank you Duncan.
They all have a unique instance (shown below, MESH_221 being the one I would like to change). I tried just opening the MTX file in notpad and changing the mesh numbers in the last two instances from 221 to 3 digit numbers that were not used in the rest of the file. When I opened the page the two parts I changed the numbers for were gone. I opened the file in Scenebuilder and saved MTS when I opened that file everything was there, but nothing was in the right place. Does anyone know of a way to change mesh names manually? Thank you |
|||
|
|
Member |
Ok, for some reason the code that was supposed to be in my last message hopefully it works this time.
|
|||
|
|
Member |
Hey Gomer
I think duncan was on the right track... You may create a master instance to enclose all the unique instances. Basically, you are creating a new leg UP the hierarchy. An interactor may be pointed at this master instance to trigger an OnClick (or other events) for its children. I don't have a specific example for your right here, right now...but I would swear that I have had success with this. 1) start with: [MTSInstance Name="namehere" > 2) remember you may manage any Transform attributes to the master too, if you want. Example: [Transform> [Scale x="1" y="1" z="1" /> [Shear xy="0" yz="0" xz="-0" /> [Rotate x="180" y="160" z="-180" /> [/Transform> 3) place all the other instances after this declaration. 4) close off the declaration of the master instance with the [/MTSInstance> declaration...making sure that the other instances are fully enclosed in the master. 5) point your interactor at the master instance name. hth DavidR |
|||
|
|
Member |
Thank you David, I figured it out. I had been using interactors to call javascripts, but could only get them to work when a mesh was the target. I looked through the XML help again and found the article on launching URL's directly from the MTX file, this allowed me to target based on the the SolidWorks part name (highest level in the default hierarchy).
|
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

