tiburcio Posted July 13, 2020 Posted July 13, 2020 Hi guys, I really need your help. in accoreconsole i need to open a dwg containing several sheets limited by closed polylines and export them all to separate dwg and pdf files. Through the json I get from autodesk forge I can identify which are these polylines and select them using their handle. The last step of my process would be to get your coordinates using the list command and then finally export the sheets using select. How do I use the coordinates of the list command in the selection if the list command only shows one output on the screen? Is there a way to save this data from the list command in a variable or even save it to a text file which I could read later with the core console and execute the final part of the export? thank you Quote
BIGAL Posted July 15, 2020 Posted July 15, 2020 The aeccoreconsole can use lisp so should be able to find the plines in the dwg the you can get there co-ordinates like top right, bottom left. Use wblock to write out the new dwg. Make a list of all the pline co-ords then loop wblock. Why use Forge ? Your plines should have something like a layer so you can find them. https://www.tek1.com.au/load-lisp-files-accoreconsole/ Quote
tiburcio Posted July 15, 2020 Author Posted July 15, 2020 16 hours ago, BIGAL said: The aeccoreconsole can use lisp so should be able to find the plines in the dwg the you can get there co-ordinates like top right, bottom left. Use wblock to write out the new dwg. Make a list of all the pline co-ords then loop wblock. Why use Forge ? Your plines should have something like a layer so you can find them. https://www.tek1.com.au/load-lisp-files-accoreconsole/ Thanks for answering the question BIGAL , Forge is used throughout the project to import dwg and convert to pdf, at the moment the system development guideline is identify markings that are lwpolylines around the project pages without using layers as an identification parameter. I need to find the lwpolylines that surround the pages, obtain their coordinates so that I can export each page using the coordinates obtained. Quote
BIGAL Posted July 16, 2020 Posted July 16, 2020 (edited) The plines must have some sort of "Key" to be found else would randomly pick everything that was a pline. What about using area of pline, greater than a value. Edited July 16, 2020 by BIGAL Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.