×
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

Macro: opening part from drawing

Macro: opening part from drawing

Macro: opening part from drawing

(OP)
Hello,

I'd like to have a piece of code that allow me to open and close a part configuration from the drawing.(I was able to do it the other way around part to drawing but I'm stuck with drawing to part)

(If you wonder why here is the reason:
The user shall have access only to the drawing file and use a textbox to change a dimension that involve conditions on other dimensions. So I need to open the 3d part in order to update the design table and close it right after the update...)

RE: Macro: opening part from drawing

I'm not sure how to do this.
If the user has SW, and has the ability to update the dwg, why not let the user just update the part?

Chris
SolidWorks 10 SP4.0
ctopher's home
SolidWorks Legion

RE: Macro: opening part from drawing

Redrum,

This is not how SolidWork or any other 3D CAD program works.  It seems to run counter to the purpose of having a 3D CAD program.  It also seems that you may be looking for a method of redlining.  This can be done in eDrawings or PDF.

Matt Lorono, CSWP
Lorono's SolidWorks Resources & SolidWorks Legion
Follow me on Twitter

RE: Macro: opening part from drawing

You need to do this from a drawing view.  Get the drawing object, then a sheet, then a view, then get view's referenced part.

RE: Macro: opening part from drawing

Just for clarity, here is what I was responding to from the OP: "The user shall have access only to the drawing file and use a textbox to change a dimension that involve conditions on other dimensions. So I need to open the 3d part in order to update the design table and close it right after the update"

In my opinion, the change should be driven from the design library, as this is how SolidWorks functions.  If you wish to change the drawing and then manually update the model separately afterwards, it seems to me that you are trying to implement a redline system.  The SW drawing doesn't work like that.

To address your actual question, I differ to Tick's comment.

Matt Lorono, CSWP
Lorono's SolidWorks Resources & SolidWorks Legion
Follow me on Twitter

RE: Macro: opening part from drawing

Redrum555 are you trying to access the drawing file from some other application besides SWX? If the user has SWX to open the drawing they can just open the part file from there, no?

--
Hardie "Crashj" Johnson
SW 2011 SP 2.0
HP Pavillion Elite HPE
W7 Pro, Nvidia Quaddro FX580

 

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