×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Is there a way of adding a part to an existin view?

Is there a way of adding a part to an existin view?

Is there a way of adding a part to an existin view?

(OP)
If I have a view that was created from a large assy by selecting one of the sub-assy's within the top product at creation (only parts from that sub-prod were projected in the view), can I add a part or parts from one of the other sub-products later?

RE: Is there a way of adding a part to an existin view?

Not interactively.  We have a script written internally that does this, however.

One thing to watch out for though, if there is any positioning information on your sub-products, then the new parts may not show up in the correct location.

RE: Is there a way of adding a part to an existin view?

(OP)
Would it be possible to get a copy of that script posted here? I have a little experience with writing script. That one would be helpful.

RE: Is there a way of adding a part to an existin view?

Sorry, it's not mine to give away (I didn't write it).  I can tell you that the critical APIs are in the following snippets (taken from the Online Documents):

 Dim viewLinks As DrawingViewGenerativeLinks
 Set viewLinks = MyView.GenerativeLinks
 viewLinks.AddLink(MyPartDocument)

 Dim viewLinks As DrawingViewGenerativeLinks
 Set viewLinks = MyView.GenerativeLinks
 Dim MyLinks As DrawingViewGenerativeLinks
 viewLinks.CopyLinksTo(MyLinks)

 Dim viewLinks As DrawingViewGenerativeLinks
 Set viewLinks = MyView.GenerativeLinks
 viewLinks.NexRemoveAllLinks()
 
Don't feel intimidated by writing your own Scripts.  It's easy - believe me, the only formal Programming training that I ever had was Fortran77 (back when it was new).  Start with the Macro Recorder, and look at existing scripts.  When you are stumped, post your code to one of the forums and you'll usually get an answer pretty fast.  All 3 forums that I use are pretty good in the programming area (COE, German CATIA forum, and this one).

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources