Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using Feature Line Method

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
dwcouch123
410 Views, 2 Replies

Using Feature Line Method

C3D 2012.  I am trying to get the distance from the start of a featrue line to a selected point.  My object is "FLobj" and my Point is PT1.  I am using the method Get2dDistanceAtPoint.  This is the line of code.

 

(vlax-invoke-method FLObj 'Get2DDistanceAtPoint pt1 'pDistance)

 

I keep getting "too many actual parameters". 

 

What am I missing??

 

Dave

2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: dwcouch123

Give this a try, David. (Yes, I know I'm on vacation but sometimes I just need to check in Smiley Wink )

 

(setq pDist (vlax-invoke-method FLObj 'Get2DDistanceAtPoint (vlax-3d-point pt1)))

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
dwcouch123
in reply to: Jeff_M

Jeff, as usual, it works perfectly.  Thank you. 

 

Just can't stay away huh.  Just in case you need something else to look at, check my posting on changing the Feature Line Style.    I found the info you mentioned, but don't know how to use it.

 

BTW, any success with the hunting yet??

 

Dave

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report