Jump to content

Lisp for Civil 3D objects - Station from Alignment into a User Defined Property


Bill_Myron

Recommended Posts

I was wondering if this was possible at all.

 

Lisp that will assign the station value from an alignment into a user defined property of a point?

Link to comment
Share on other sites

Without coding anything... I can tell you that LISP is severely limited (by default) when accessing or manipulating certain AECC* Objects. One way to know for sure is it drill down with vlax-dump-object Method.

 

If LISP is unable to access the data you're after, then the only way I know of is to code a custom .NET LispFunction Method which accesses the applicable *TableRecord using Transaction ForRead, the Return the queried data using the LispFunction's ResultBuffer.

 

HTH

Link to comment
Share on other sites

You can not save the allignment details etc into a "point" but a block =point yes.

 

I have posted code here to get into contours and pointstyle it should be similar to acces the alignment stuff, theres a couple of people chasing this use the "dump" to try and get the alignment "words" you need. Just Search BIGAL

Link to comment
Share on other sites

Try this pick an alignment say pick a CIV3d point etc to compare

 

(setq e (entsel))
(setq obj (vlax-ename->vla-object (car e)))
(vlax-dump-object obj T)

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...