Pulling a single number out of a filename?
Pulling a single number out of a filename?
(OP)
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
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






RE: Pulling a single number out of a filename?
Chris
Sr. Mechanical Designer, CAD
SolidWorks 05 SP1.1 / PDMWorks 05
ctopher's home site
RE: Pulling a single number out of a filename?
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.