Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

autodimensioning

Status
Not open for further replies.

Milothicus

Mechanical
Sep 21, 2003
39
I'm working on a macro, and want to dimension some pipe. all i really need to dimension are the centre lines.

i've got code that uses get centrelinesketch and getlines2 which returns an array that has data for all the centre lines in the view i've selected.

the example they have for getlines2 in 2005 is wrong, by the way. it assumes each line has 7 items of data, when each one has 12.

once i've got the sketch of centre lines, i want to add dimensions to the view in the drawing based on those centre lines. the autodimension on the sketch returns true, but after that, there's no dimension values anywhere to be found.

is this the right logic? is it ok to apply the autodimension to the centrelinesketch, or does it have to be applied to the view? if so, how do i select only the centerlines in the view?

also, what are the units for the x,y,z values in getlines2? they don't make any sense to me....
 
Replies continue below

Recommended for you

assuming that the fact that autodimension2 returns true means that the dimensions have been applied to the sketch,

can i get them to show on the view in the drawing?

i've seen something here talking about flagging dimensions to be shown on drawings, but i really don't understand what i need to do...

help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor