- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
So I am very new to ALisp, but have a fair handle on programming. My goal is to learn so I would like a little explanation on this request. I am also trying to as much as I can on my own and have built a framework for what I need to do, but if I am going about this the wrong way. Please point me in the right direction, but as I am pressed for time. I am open to someone just writing something up and I reverse engineer it.
I have two blocks that have attributes (1st block = Name and destination, 2nd block = Name) these blocks will need to have a Pline draw between them by a user. When the polyline is complete the user will have a block that is inserted with the following data on a layer that will be hidden: the name attribute value of the two blocks together separated by a dash, the destination value, and the length of the polyline with an additional 10%.
I am going to plan out my code this way more or less:
select the start point block
if TABLE get name and destination, if not get the name
start polyline with red colour (hopefully, the user will have it start near or on the block perimeter)
pick route for polyline (user input to the destination block)
hit enter (user input)
select the destination point block
if TABLE get name and destination, if not get the name
get the length of polyline and add the 10% (in future I will ask for hight between table and trench depth)
insert block on a hidden layer, if the layer doesn't exist make it
insert data to Tag block
change polyline colour to green
Voila!
I have put an example of the three blocks I want to do this with. I filed the attributes by hand in the TAG block to show the result. The file was done in acad2019. I can export it to an older version if needed
Thank you for any help!
Solved! Go to Solution.