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: 

To find the allowable dist where we can put another structure near a structure

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
MehtaRajesh
426 Views, 3 Replies

To find the allowable dist where we can put another structure near a structure

Hello All,

When we are trying to put Structure on pipe nearer to other Structure using below method

LAYOUTSTRUCTUREONLY OR using
Network Layout Tools

Civil 3D is not allowing user to put other structure till certain distance, after some distance we can put another structure. This allowable distance might be calculated based on Structure style (Size of Structure).

 

Is there a way to find out this distance?

 

The reason for asking this question is we are developing application which will put structure automatically at certain distance, but because of above reason the function is not running consistently.

Regards,
Rajesh Mehta

3 REPLIES 3
Message 2 of 4

Isn't this the Structure.IsPointInsideStructureRegion method?
http://docs.autodesk.com/CIV3D/2014/ENU/API_Reference_Guide/html/14b9e3e3-94ff-60a4-75ea-9a4ab33f09d...

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 3 of 4

Hi,
I have tried below two ways but not able to get the result

(setq vla_obj (vlax-ename->vla-object (car (entsel))))
(setq perm  (vlax-invoke-method  vla_obj 'IsPointInsideStructureRegion (getpoint)))
; error: lisp value has no coercion to VARIANT with this type:  (216899.0 380313.0 0.0)

;Tried

(setq perm  (vlax-invoke-method  vla_obj 'IsPointInsideStructureRegion (vlax-3d-point (getpoint))))
; error: lisp value has no coercion to VARIANT with this type:  #<variant 8197 ...>

What is the correct way to get the result ?

Regards

 

Message 4 of 4
Jeff_M
in reply to: MehtaRajesh

The method is expecting an AeccPoint3d. I am not seeing any way of creating one, but the start/end points of a pipe return this type. I thought about grabbing the location of the structure, which is also an AeccPoint3d, and editing that. But it appears that it keeps an association with the structure, so any edit moves the structure.
Jeff_M, also a frequent Swamper
EESignature

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report