use of LispFunction with a list of objects.

use of LispFunction with a list of objects.

moises_tavares6S2SB
Explorer Explorer
457 Views
2 Replies
Message 1 of 3

use of LispFunction with a list of objects.

moises_tavares6S2SB
Explorer
Explorer

I, new to civil 3d API, appreciate any guidance how to do this…

I had a lisp to define my rail alignments that I create long time ago…. I create 2 arcs, and transform them to objects, what I want is, to pass them to vb.net as objects to create one alignment, and to create clothoid spiral that connect them…., with references I find not able to do it… will appreciate any guidance how to do it.

Many thanks,

Moisés Tavares

0 Likes
Accepted solutions (1)
458 Views
2 Replies
Replies (2)
Message 2 of 3

hippe013
Advisor
Advisor
Accepted solution

Are you able to post additional information? Post your lisp code, post a drawing that has the desired completed alignment. Providing more information will help others come up with a solution.

 

As far as mixing lisp with .Net, it is my opinion that you shouldn't mix the two unless it is to specifically provide additional functionality to lisp. It appears in this case, everything should be able to be handled by the .NET API so you shouldn't need lisp to pass objects from LISP to .NET when .NET can just get the objects on its own. 

0 Likes
Message 3 of 3

moises_tavares6S2SB
Explorer
Explorer

 

Hi, many thanks for your post…

I had solved the problem by myself, I send value, text, etc… to vb.net, then I create alignment and entities in vb.net… example I pass 2 points, radius and in vb I create my ARC of the alignment instead of passing it as arc itself… I receive then as array, and work with it from there…

I had use LISP for many years in the past, and I had old solutions for almost make a full project with them… for more than 10 years I use other software (from concurrence…) for make projects with my team …. Now we are “forced” to return to a “acad/civil 3d” solution again, and of course I’m try to re-use many tools  I had done in the past… so I need to integrate many thinks in civil 3d in fast and simple possible way… it will cost long time to pass all… so solution for me is use of my old LISP tools and what is best from VB.NET ( example create one alignment)… no time to create all I need again… example to calculate a angle just get the result of a function in LISP, to get it in VB I will need to create a function to calculate it from 2 points… etc, etc…

 MT

0 Likes