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...)
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
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
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
RE: Macro: opening part from drawing
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
--
Hardie "Crashj" Johnson
SW 2011 SP 2.0
HP Pavillion Elite HPE
W7 Pro, Nvidia Quaddro FX580