Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Text wrapping in Title block 2

Status
Not open for further replies.

Robli

Industrial
May 7, 2003
10
I have been looking fro away to wrap text on to another line in the titel block. I have searched thru the post and other sites but can't seem to get it to work.

Has anyone found the way to do it?

I want to insert the Title from summary page one.

thanks
 
Replies continue below

Recommended for you


There is that information. It doesn't hit the exact issue but it does explain it and it might work for you if you used a DT.

Other wise there is no other way to wrap the text when your entering it from the Summary page. Doing an enter while in the text box will wrap the text, but there is no way to my knowledge to do this in the summary info area.

Maybe someone else has found a way???

Regards,

Scott Baugh, CSWP [bdaycandle] to me

Have you read FAQ731-376 to make the best use of Eng-Tips Forums?
 
As Scott said, I use a Design Table for that. It works well for us.
 
NewLine = Chr$(13) & Chr$(10) ' Line Feed or Enter
RetVal = Part.AddCustomInfo("Title1", "Text", UCase$(txtSfDrawingTitle.Text _
& NewLine & txtSfDrawingTitle2.Text))


Bradley
 
Sorry, I forgot the text that went with the code to explain it.

I use a different approach for this one. In a Visual Basic (VB) program the user enters the 1st line of text in one box then the 2nd part of the title in the next text box. The VB program combines these together with a line feed (see code below). SolidWorks see this as a line feed and puts the second line of description on line 2.

NewLine = Chr$(13) & Chr$(10) ' Line Feed or Enter
RetVal = Part.AddCustomInfo("Title1", "Text", UCase$(txtSfDrawingTitle.Text _
& NewLine & txtSfDrawingTitle2.Text))


Bradley
 
I do not think you need the carriage return. I only use the linefeed and get the same results.
 
I set up an extra custom property in the part mode called "Description2" along with "Description" and modified my drawing templates.

$PRPSHEET:"Description"
$PRPSHEET:"Description2"

Example: FUEL PUMP, MAIN ENGINE
ASSEMBLY OF
This way it fills in automatically when I'm designing a and new part and making a drawing of that part. Two......it drives the custom properties of PDMworks. This will allow you to do wild card searches.

I hope this helps,

Macduff
 
Macduff,
Yes that does work well. What we needed the line return for was the description in the BOM. By put in a line feed in the description the SolidWorks BOM would put in two lines of text.


Bradley
 
Bradley,
If you come up with a fix let me know. Base on your last comment, it might be help me out over here.

Macduff
 
We fill out our custom properties using a VB macro. In the form there is a textbox for each property the users need to fill out. The Properties for the Description textbox has a property called MultiLine which is set to True.

With this setting, our descriptions are multiline, as many lines as you want.
 
MElam,
I don't supose you would be willing to share that VB macro fill with the rest of us? It sounds like you are doing just what we need.

thanks

rob Libby
robli@hazelett.com
 
We downloaded the macro years ago from the SolidWorks support area, Model Library. It's under API/General near the bottom and labled as Custom File Properties.

It's a VB app we modified for our use and keep on the network, and the users run a small macro pointing to the .exe file.

If the download will not work for you, I could probably pack up our files and email them after making sure there is nothing proprietary. I don't have anywhere to post.

 
MElam,
If you don't mind and are allowed, I would like to get your files to see what you have done.

rob libby
 
I just sent them. Let me know if you have any problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor