Update a block with attributes from another block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Okay, I have an AutoCAD / LISP question. For CIVIL 3D 2018. I draw diagrams for long drilling routes, where I station the conduit being placed under ground for various reasons. As you might expect, the conduit being placed in the ground requires many sheets to be created in paper space. I draw typically in a 1:50 scale. I have a rectangular block that I use in model space that has scaled down dimensions that line up to the viewports in paper space. The rectangular block that I use in model space has three attributes. The first attribute is a page number, and the 2nd attribute is a left station or distance and the 3rd one is a right station or distance. In paper space I have two blocks and they are left and right match lines. They have 3 attributes respectively, the page number the match line is proceeding to (entering or leaving the page), the station or distance denoting at what distance the conduit enters the page and at what distance the conduit exits the page. Now that we have the picture, let's move to the question. I want to be able to type into my block in model space, the page number and the beginning and ending station, if the page number matches the sheet number then what ever I type in the stations attribute on the model space layout block rectangle, will appear on the match line in layout space. On the left and right respectively.
Here is my lisp file trying tirelessly to error check it. I can't get it to even error check properly, someone please point me in the right direction, I use civil 3d 2018, and VLA-GET-ATTRIBUTES doesn't seem to be recognized.
The command doesn't get past selecting the viewport.