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