Alinment: total length multiple alignment & LENGTHEN (total length) an alignment

Alinment: total length multiple alignment & LENGTHEN (total length) an alignment

neam
Collaborator Collaborator
2,078 Views
14 Replies
Message 1 of 15

Alinment: total length multiple alignment & LENGTHEN (total length) an alignment

neam
Collaborator
Collaborator

Hi everyone

How can we calculate the sum of the lengths of multiple selected alignments?
How can we change the length of an alignment like LENGTHEN (total length) example command?

Thank you for your guidance.

0 Likes
2,079 Views
14 Replies
Replies (14)
Message 2 of 15

neam
Collaborator
Collaborator

Has anyone encountered a similar case?

0 Likes
Message 3 of 15

saqib_tipa
Advocate
Advocate

@neam wrote:

How can we change the length of an alignment like LENGTHEN (total length) example


I don't think this is possible even with help of lisp. 
If you want to remove portion of alignment you can Ctrl+Click on segments of alignment and delete those Sub-entityies and if you want to extend Alignment, then Edit Alignment Geometry then add some tangents or curves as required. It is easier.

Message 4 of 15

neam
Collaborator
Collaborator
0 Likes
Message 5 of 15

neam
Collaborator
Collaborator

I got a code to increase and decrease the length of a alignment in .NET language through chatgpt.
But I couldn't generate its .dll file (I don't have Visual Studio).
Can anyone help me get its .dll file?

(Autocad Civil 3d 2019)

0 Likes
Message 6 of 15

neam
Collaborator
Collaborator

and also wrote this lisp for me for the total length of the alignments.

Message 7 of 15

Ronny_Jansen
Participant
Participant

I tested it and it works, I was wondering why it is needed The <cadApp civApp civDoc> declarations are unnecessary

0 Likes
Message 8 of 15

neam
Collaborator
Collaborator

Thanks for reply 

Lisp total alignment lengths work fine.

The problem is in a program written in .NET and I need its DLL.

0 Likes
Message 9 of 15

Ronny_Jansen
Participant
Participant
0 Likes
Message 10 of 15

neam
Collaborator
Collaborator

Dear Ronny

I see but I am not familiar with any programming language other than Lisp.

Is it possible to convert the zipped file sent by the chatgpt to a DLL file?

0 Likes
Message 11 of 15

Ronny_Jansen
Participant
Participant

I have the same problem, too little/no C# experience, better luck next time

0 Likes
Message 12 of 15

Jeff_M
Consultant
Consultant

@neam looking at the c# code, I doubt that it is what you were really looking for. IF the alignment's last segment runs from west to east in a straight line, then it WILL extend it to the east if lengthened, or the last segment is just deleted if shortened. If the last segment is not running west to east, then the end point will just be moved the adjustment length to the east. 

I don't want to spend the time to create a .NET project for this unless it is really what you were wanting to do...

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 13 of 15

neam
Collaborator
Collaborator

thanks Jeff_M for attention:

I want to increase or decrease the length of an alignment from its end to the entered value.

0 Likes
Message 14 of 15

neam
Collaborator
Collaborator

 

Dear Jeff_M

Of course, my wishes are not very important in this case.
The solution that takes the least amount of time and energy from you is acceptable to me.

0 Likes
Message 15 of 15

Jeff_M
Consultant
Consultant

@neam we know what you are looking for, you don't need to keep asking. To extend/shorten an alignment is not a simple task and I do not have time right now to work on something like that. If/when someone does have the time and inclination I'm sure that someone will jump in with their offering. 

Jeff_M, also a frequent Swamper
EESignature