×
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

Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table
5

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

RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table

Use Note pad or Excel - See help on Curve through XYZ point.

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

(OP)
Thanks SBaugh for replying,
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

(OP)
Thanks Ctopher,
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

2
Edit the macro, this line:

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

And a star for ctopher, great catch as I totally missed that thread before!

RE: Transferring XYZ co-ordinates of a 3D sketch into a .SLDDRW table

Thanks alexit.
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

(OP)
Thanks very much guys, I'll have some more playing around with the macro to do, but you've both been alot of help.
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

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