XANSYS Message: 292 [Go back to message list]
[bookmark on del.icio.us]
No rating yet
Rate item:

Subject: Re: Sorting Lines by Type (Straight, Arc, etc)
Author: Peter Budgell
Date: 1999-01-18 10:52:00

Good morning:

I haven't checked the following (ANSYS is running a long job in the
background), but...

To see if a line is straight: Setting parameter "linenum_" to the line
number of interest,

Using the command:

*GET,linelen_,LINE,linenum_,LENG

get the line length. Then, using:

*GET,kp1_,LINE,linenum_,KP,1

get the line's first keypoint, and using

*GET,kp2_,LINE,linenum_,KP,2

get the second keypoint, then get the distance between keypoints
at the ends of the line using:

kpdist_=DISTKP(kp1_,kp2)

See if the distance between keypoints equals the line length. If the
DISTKP command gives its result in a cartesian coordinate system, then
presumably "linelen_" equals "kpdist_" only for straight lines.

Peter

Peter C. Budgell pbudgell@o...
Senior Development Engineer 519-740-0757 ext.249
Innovative Steam Technologies FAX: 519-740-2051
200 Avenue Road http://www.otsg.com
Cambridge, Ontario, Canada N1R 8H5

> -----Original Message-----
> From: Jean-Pierre Dube [SMTP:dubejp@n...]
> Sent: Monday, January 18, 1999 10:35 AM
> To: 'xansys@o...'
> Subject: [xansys] Sorting Lines by Type (Straight, Arc, etc)

> From: "Jean-Pierre Dube"

> Dear ANSYS Users,

> Is it possible (probably by using APDL)
> to distinguish between a line that is straight
> and one that is an arc?

> Thanks,

> Jean-Pierre Dube
> 0Q64 MCAD Tools and Methods
> Nortel Networks
> (613) 763-8019
> dubejp@n...


Posts possibly associated with message #292AuthorDateScore
291Sorting Lines by Type (Straight, Arc, etc)Jean-Pierre Dube1999/01/18 
292Re: Sorting Lines by Type (Straight, Arc, etc)Peter Budgell1999/01/18 
293Re: Sorting Lines by Type (Straight, Arc, etc)John Swanson1999/01/18 
295Re: Sorting Lines by Type (Straight, Arc, etc)Scott Reiss 
307Re: Sorting Lines by Type (Straight, Arc, etc)Chris Rogers1999/01/18