Derventio Dave Posted May 12, 2021 Posted May 12, 2021 (edited) I have a query that I hope someone can help me with: I use a custom toolbar full of dynamic blocks to create P&IDs with editable attributes. Once the P&ID is finished, I use the ATTOUT command to create a TXT file which the project engineer can then either edit, so I can use ATTIN to populate all of the fields on the P&ID or they use it to build an valve and instrument schedule. The problem I have is surrounding my block for instruments. It is a really simple block with one multiline attribute and three visibility states to choose local instrument/remote control panel/local control panel. My issue is this. When I do the ATTOUT, in the txt file, the muliline text is displayed thus: \W0.6000;XX\PXXXX. Is there any way of getting it to just display the text or is there another way of splitting the text without using multiple attributes? I would really like the text to just display in the txt file as, for example, LSH1202, (level switch high 1202), instead of \W0.6000;LSH\P1202. Does anyone have any ideas? Edited May 12, 2021 by Derventio Dave Quote
Derventio Dave Posted May 12, 2021 Author Posted May 12, 2021 It's not a problem specific to this particular block. It affects any block where an attribute is set to multiline text. I always get the \W0.6000;XX\PXXXX format. I would like to know if there is a way of stopping the \W0.6000; & \P text from displaying when I do an ATTOUT. Quote
welldriller Posted May 13, 2021 Posted May 13, 2021 Not familiar with attout but can you use text instead of multiline text? Quote
CyberAngel Posted May 13, 2021 Posted May 13, 2021 If I understand the issue correctly, ATTOUT is exporting the contents of all the block's attributes, including formatting, when all you want is one of the attributes. According to the Autodesk Knowledge Network, the output is supposed to go to a spreadsheet, not a text file. Do you have access to Excel or some other spreadsheet app? Is it possible to write some code to filter the exported text? Is it possible to use Find&Replace on the output? Quote
BIGAL Posted May 14, 2021 Posted May 14, 2021 You can remove the formatting or do something else with it the \P is next line. \W0.6000;XX\PXXXX \W a guess width. so its XX XXXX Via a program rather than attout can be done simply as thanks to people like lee-mac there is strip Mtext. A sample dwg with multiple blocks would be good. Quote
tombu Posted May 15, 2021 Posted May 15, 2021 Lee Mac's UnFormat String lisp will remove that formatting: http://www.lee-mac.com/unformatstring.html 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.