Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Carriage Return

Status
Not open for further replies.

pdybeck

Mechanical
Joined
May 14, 2003
Messages
599
Location
US
The search function is down right now on the site and I remember reading about a carriage return that could be used to force text to another line. Can this be used in the file properties. I have a material description that is pretty long and needs to be. I want that exact material description showing up on the drawing without using multiple material file properties (i.e. material_1, material_2) and I need the text to wrap or be forced to another line using a carriage return. Is this possible?

Pete
 
Scott,

I can get the carriage return in my file properties, but the note on the drawing that pulls in this file property info does not want to wrap at the carriage return. Instead it just shows the carriage return symbol without actually wrapping the info. Any ideas? Thanks.

Pete
 
Will the Character Map number work?
Ken
 
SBaugh,
I don't know about the SW BoM, but with the Excel BoM you can get a Carriage Return within a cell by doing this: make the cell a concation of multiple cells/text and wherever you'd put an [Alt]+[Enter] in normal Excel type &" and then hit the [Alt]+[Enter] and then do the closing "

So the following (all in one cell):
="Go"&" <---hit [Alt]+[Enter] after the last "
"&"Buckeyes!"

Will give (in that one cell):
Go
Buckeyes!

Ken




 
SBaugh,

I just happened by the original post and it had another method in there to, see below.

Ken

>>>
Multi-lines in a BOM (single cell in Excel)

Use:
=A1&""&B1
as the formula but between the "" enter ALT and ENTER keystrokes.
Format the cell to enable wordwrap too...

Another way to make this work.
The 'alt-enter' character is also 'Char(10)' in ASCII.
So this will also work:
=A1&CHAR(10)&B1
Again, format the cell to enable wordwrap too...
<<<
 
This is all well and good, but doesn't solve my problem. I assume the SolidWorks annotation just doesn't understand the carriage return. I don't want to show this information in a BOM, just in a note. Wonder if the annotation function in 2005 will understand a carriage return?
 
Not sure if this will work but this is what I use in a macro

"Note: Remove Relief" + Chr$(13) + Chr$(10) & "Bend Radius"

returns

Note: Remove Relief
Bend Radius

Good Luck
 
Here is what you need to do, I did this and it works fine:

Follow the link I provided to you above.

This what I did:

1) Make a new part
2) Add a DT to that part
3) Add a property to the part e.g. - $prp@Description
4) I gave it a value - "This is a test to show a (I used the keyboard to make a Carriage return here, using this Combination of keys - Alt+Enter)Carriage Return"
5) I closed the DT and it made a new config
6) File\Properties\Configuration specific tab
7) There in my list is a description and it has my value plus it has a symbol indicating a Carriage return is there.
8) I started a drawing and added a note
9) I linked it to the Description property and wouldn't you know it. The text was forced down a line. e.g.

This is a test to show a
Carriage Return


Going back to Rule (7) - Since you now have the symbol for a Carriage return, you can copy that symbol out of the custom property and paste in other custom properties, notes, etc... and it will work fine. You don't have to maintain the DT to keep the Carriage return to work. You can delete it.

Regards,

Scott Baugh, CSWP [pc2]

If you are in the SW Forum Check out the FAQ section

To make the Best of Eng-Tips Forums FAQ731-376
 
I use the same system all the time Scott but I think he is using Custom File Properties, not the Custom Properties that normally are added in a DT. I think they are adding them via Windows File Properties. (I am probably totally wrong).
 
That what I'm saying! If you make a file (I don't care if's a new crap file or not, just make a new one) add a DT to the part. Create a custom property in the DT, use [Alt+Enter] and close the DT. The Carriage return symbols will show up in SW, under File\Properties\Configuration Specific tab. You can copy the actual symbol out and paste to your hearts desire.

If your talking about something other than SW Custom Properties then I don't know what to tell you then. But I can make this work in SW without a problem. Heck I can even send you my example if you want it.

Regards,

Scott Baugh, CSWP [pc2]

If you are in the SW Forum Check out the FAQ section

To make the Best of Eng-Tips Forums FAQ731-376
 
I understand what you are saying. I am not using the configuration specific properties - not that it should matter. I had been able to copy the carriage return symbol or at least I thought that I did, it showed up in my file properties, but the note was not respecting the carriage return. I used the DT table method and all seems to be fine. I since went back, deleted the DT, copied the config specific prop to the custom tab, then deleted the config specific prop. After a rebuild on the drawing, the note stayed the same - with the carriage return respected. If SolidWorks can display the carriage return and notes can understand it - then it seems there could be functionality added to the file property dialogue box to insert a carriage return for you, i.e. enhancement request. It could be a simple button that gets clicked that inserts the carriage return. The next question is how downstream apps view/respect the carriage return - things like PDM, PLM, integration with ERP/MRP. I'm not up on the PLM or ERP/MRP integration so I don't know what the carriage return would do there, but I will see how PDM/Works displays the carriage return - probably with the symbol. Thanks Scott for your help.

Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top