Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

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

Pulling a single number out of a filename?

Status
Not open for further replies.

behindpropellers

New member
Joined
Feb 23, 2005
Messages
73
Location
US
Hello-

Is there a way to have a file named 123-456R1 and then have the drawing sheet pull out the 1 for the revision block and the 123-456 into the revision number? We are not using PDM.

Thanks

Tim
 
I don't know of any clean way without writing some kind of API. You should look into PDM.

Chris
Sr. Mechanical Designer, CAD
SolidWorks 05 SP1.1 / PDMWorks 05
ctopher's home site
 
Can be done in api or with design tables or custom properties.

The problem with doing it in api is you need some comanality to strip the other characters away, in other words the data "1" or x would always have to be the last characther or always follow the only R so you can apply some rules to finding it correctly.

I recomend setting a simple design table and creating the custom proptery $PRP@Rev then make your note 123-456R$PRP@Rev this will cover your drawing number, make the rev callout note just $PRP@Rev. We use this method for many custom notes we control through the models file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top