markj Posted October 27, 2006 Share Posted October 27, 2006 Heres a question loosely linked to a thread posted a couple of months ago; I need to create a path type PIO, and can base it on the VW example (Schematic Pipe). The problem is that I need to be able to count the total length of the line/pipe. The pipe example draws a polyline, & as far as I can see, the object info box for a polyline doesn't show it's overall length (the wall tool is the same), so therefore it cannot easily be calculated by VW. The polyline object info box does however return the perimeter of the line, which, being a line with very little thickness, is the same as its length. What I want to be able to do is to draw a polyline as per the sample Schematic Pipe Tool, and return its total length. This will then be counted onto a worksheet. - Any ideas? It seems odd that there is no ability to count the total length of a wall with VW. Thanks Mark Quote Link to comment
Petri Posted October 27, 2006 Share Posted October 27, 2006 Polygons & polylines: Perimeter = length. Line thickness has no effect. Walls: Length = length. These can be calculated into a worksheet. Quote Link to comment
markj Posted October 30, 2006 Author Share Posted October 30, 2006 Thanks, Yes, the perimeter is equal to the length of the line. So with the Schematic Pipe example, what lines/procedure do I need to add to calculate its total length? Quote Link to comment
Petri Posted October 30, 2006 Share Posted October 30, 2006 With a formula like this (in a database of a worksheet) ='Schematic pipe'.whatever_the_name_of_the_length_field_is (I have no idea what the example is like.) Quote Link to comment
SYLVAIN Posted November 21, 2006 Share Posted November 21, 2006 You can also calculate the perimeter of the path of the PIO : Hperim(getcustomobjectpath(objectHandle)):REAL; and retrieve it to a inactive parameter, with the SetRField Fonction, so that it can be imported in a worksheet Is that what you a re looking for ? Quote Link to comment
markj Posted November 24, 2006 Author Share Posted November 24, 2006 Thanks, yes. 'Hperim(etc...' does the trick! The next problem is I want to draw a wall type object along the polyline. ie. a double polyline with a hatch fill. The polyline/wall also needs to be drawn from its left or right side & not the centreline. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.