Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
(OP)
Hello all,
I have a model of an aircraft air-conditioning duct that I have built up by using a 3D sketch that runs through various points located using XYZ co-ordinates.
I have a question, when I create a detail drawing of this duct how can I transfer these XYZ point co-ordinates into a table in the .SLDDRW? I'd obviously need this table to be linked in some way so that it is updated when or if I update the model. Also, I have 25-30 of these ducts so does anyone have any idea for a quick script?
Any help would be greatfully recieved.
Regards
Derek Crittell
I have a model of an aircraft air-conditioning duct that I have built up by using a 3D sketch that runs through various points located using XYZ co-ordinates.
I have a question, when I create a detail drawing of this duct how can I transfer these XYZ point co-ordinates into a table in the .SLDDRW? I'd obviously need this table to be linked in some way so that it is updated when or if I update the model. Also, I have 25-30 of these ducts so does anyone have any idea for a quick script?
Any help would be greatfully recieved.
Regards
Derek Crittell






RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
I do think you mean having a table and brign that into a part file then into a drawing.
Regards,
Scott Baugh, CSWP
www.scottjbaugh.com
FAQ731-376
RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
See if this helps?
Chris
Systems Analyst, I.S.
SolidWorks Pro 06/PDMWorks 06
AutoCAD 06
ctopher's home site (updated 06-21-05)
FAQ559-1100
FAQ559-716
RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
The centreline positions (XYZ) of the duct produce a buildup of straight lines (as in from one point in space to the next).
At the time I thought this lent itself more to a 3d sketch rather than a curve. Purely because the duct does not have a spline as its centreline. Also, I can integrate a constant radius for the bends of the duct.
Now that the duct has been modeled I need to detail it in the same manner that I modeled it, ie, show points (A,B,C..) in a table. As this information alreadys exists in the SLDPRT as points, my question was, is there a way of getting this information into a table in the drawing from the feature tree of the model.
I hope that made sense, in a nutshell the duct has followed a path of straight lines with radii, rather than a curve. And the point XYZ co-ordinates have already been entered, I didn't want to have to re-create/re-enter these.
Regards
Derek
RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
I've run this macro and assigned an icon. The results i've got are exactly what i'm after, however, they give me the positions in inches (the part model and point co-ordinates are entered in mm and the units are set to mm).
I'm rusty with macros, but i'll have a quick look to see if anything stands out, last time I wrote a macro was for HP Me10!!
Also, the model points are entered to 2 decimel places, where as the macro is creating a text file to about 10.
I don't want to sound unappreciative, because i'm not i assure you.
Thanks for the quick response.
Regards Derek.
RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
Print #1, FormatNumber(SketchPointXVal(i) * 1000 / 25.4, 8) & "," & FormatNumber(SketchPointYVal(i) * 1000 / 25.4, 8) & "," & FormatNumber(SketchPointZVal(i) * 1000 / 25.4, 8) & "," & FormatNumber(swSketchPoints(0) * 1000 / 25.4, 8) & "," & FormatNumber(swSketchPoints(1) * 1000 / 25.4, 8) & "," & FormatNumber(swSketchPoints(2) * 1000 / 25.4, 8)
is performing a conversion from meters to inches and setting the output to eight places. Edit this as desired.
RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
Sorry for the delay, I was in a mtg.
alexit, thanks for the macro mod. A star for you also.
Chris
Systems Analyst, I.S.
SolidWorks Pro 06/PDMWorks 06
AutoCAD 06
ctopher's home site (updated 06-21-05)
FAQ559-1100
FAQ559-716
RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
I basically just need the sketch points, not the model points. I guess also, if I could change the header descriptions I can just import the .txt file into excel and put the excel table in SW without to much modifying.
Do you think thats the way to go?
Derek