This content has been marked as final.
Show 1 reply
-
Re: Reattach balloon using API
Keith Rice Sep 22, 2016 7:47 PM (in response to Jeetendra Prasad)Please clarify:
- Are these SLDLFP files different library features, but with the same name, or are they truly the same library feature but in a different location? If the latter, I don't understand why you are editing the sketch since nothing should be different in the geometry.
- Why you would have working assembly and drawing files with the original weldment profiles if those weldment profile locations changed. It seems like all you would have to work with are drawings with dangling balloons.
Depending on your answers to the above, there are a few options for locating the correct entity to re-attach a balloon to:
- Persistent ID's --- if you are using the same SLDLFP.
- Geometry / topology traversal until you find an entity that matches the original -- if you can see the original geometry but persistent ID's don't match between the old and new.
- Closest entity to balloon leader --- if you can't use 1 or 2. This could be messy. While it is possible to get the location of the leader start point, it could be difficult to know for certain whether it is supposed to be attached to a face, edge, or vertex. You could arbitrarily say that if the leader is within X distance of an edge, re-attach to that edge, I suppose. If the rules are clearly defined, however, then this would like run much faster than 1 and 2 because in 1 and 2 you'd need to open up those original models.
All in all, if I'm understanding your situation correct (and I'm not sure that I am), this could be a complex program.
Keith