Jump to content

Recommended Posts

Posted (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?

Capture.JPG

Edited by Derventio Dave
Posted

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.

Posted

Not familiar with attout but can you use text instead of multiline text?

Posted

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?

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...