lisp

lisp

ajeet.bisht
Participant Participant
1,198 Views
10 Replies
Message 1 of 11

lisp

ajeet.bisht
Participant
Participant

Hi, I want to create lisp as the array, patharray works. but path array goes with one 2d polyline I want it 3D, and can we have 2 point array where we will select 2 PEline and array object, (object 2 point will go the both PElines).
I can use this for placing sleeper at the CANT area.

0 Likes
Accepted solutions (1)
1,199 Views
10 Replies
Replies (10)
Message 2 of 11

jorge_lopez_adsk
Autodesk
Autodesk

Hi ajeet.bisht,

 

If I understand correctly, you are trying to use ARRAYPATH using a 3D path. Is that correct? Have you tried selecting a 3DPOLY as the path?

Hope this helps.
Cheers,

 

Jorge

 


Jorge Lopez
Distinguished Engineer
0 Likes
Message 3 of 11

ajeet.bisht
Participant
Participant

Hi Jorge,

I used 3D poly for ARRAYPATH that’s correct.

I want to use 2 poly lines for single block where both 3D Poly lines elevation is varying.
And the block(object) we are arrying that should touch both the poly lines. is it possible ?

Hope that make sense.

0 Likes
Message 4 of 11

jorge_lopez_adsk
Autodesk
Autodesk

Hi ajeet.bisht,

 

Thank you for clarifying. My understanding now is that two 3d polylines define the path and the block is arrayed in the center while oriented to touch the two 3d polylines. Is that correct?

 

The existing ARRAYPATH command cannot do that. Sorry I don't have better news for you.

 

Cheers,

Jorge

 


Jorge Lopez
Distinguished Engineer
0 Likes
Message 5 of 11

ajeet.bisht
Participant
Participant

Hi Jorge, you correctly understood.

are you saying it is not possible?

0 Likes
Message 6 of 11

jorge_lopez_adsk
Autodesk
Autodesk

Hi ajeet.bisht,

 

Not possible with ARRAYPATH.  You would have to implement this. In a custom implementation, perhaps ARRAYPATH can be used to get things started and then custom LISP or ARX code can be used to move and orient the block.

 

Hope this helps.

 

Cheers,

Jorge


Jorge Lopez
Distinguished Engineer
Message 7 of 11

cadffm
Consultant
Consultant

@jorge_lopez_adsk wrote:

Hi ajeet.bisht,

 

Thank you for clarifying. My understanding now is that two 3d polylines define the path and the block is arrayed in the center while oriented to touch the two 3d polylines. Is that correct?

 

The existing ARRAYPATH command cannot do that. Sorry I don't have better news for you.


Jorge, no problem, he/she/it " want to create lisp "

Hopefully the ready resulted program will be shared here later.

(sorry, i didn-'t read a real question here)

 

@ajeet.bisht 

You can program what you like, but you can not use native autocad array-objects for it.

You have to write your own program to create copys of your objects (then you can nest the objects in a block like the array-object, or not - that's the programmer choice = yours)

 

But excuse me, without DWG with before / after description I can not imagine it (I'm from another industry)

Sebastian

Message 8 of 11

ajeet.bisht
Participant
Participant

Hi,

Could anyone help me to write programme, means if you could share something related to this can do some research,

Thanks,

Ajeet  

0 Likes
Message 9 of 11

cadffm
Consultant
Consultant
Accepted solution

It sounds you need just calculate the positions, perhaps also rotations for the objects, depending of the selected plines,

so 95% or more are simple basically lisp-functions, what do you need? What do you HAVE? Where do you stuck?

If you are a beginner (programming, specially CAD/Geometric programming) it isn't the right project for you (we  don't know about your skills).

 

If you share a sample dwg, or two, to show what you have to begin and what you want to have later,

perhaps more people are interesting to help you.

As i wrote, for example it is not 100% clear what you have and what you want to have [before/later].

 

I guess, pline 1 should be the the path for X and Y coordinates and pline 2 should be the path for z coordinates?

Then all lisps about Assembly creation are a good source.

 

 

Sebastian

0 Likes
Message 10 of 11

ajeet.bisht
Participant
Participant

Hi

attached the dwg, there is a 3d block, and 3d poly lines need to array block 500 interval throughout the pelines  where it should tough both the yellow pelines. Thanks

0 Likes
Message 11 of 11

cadffm
Consultant
Consultant

A really VERY unfavorable example, I needed 5min to recognize Z differences

in 3dPline and 3min. morre tor see the differences between the both yellows.

It should be a clearer example (exaggerated to show it clearly) and in addition the finished result.
It should be enough for a short distance with only 5 correctly placed blocks.

It's probably the way I think it is, but that's work and only for a skilled programmer who has completed functions in a short time.
No favor for a forum (at least as far as I'm concerned)

 

Just math, not more.

Sebastian

0 Likes