I get an error message when opening the file: See attachment
capture.png
I just need the line of code to replace the file name with one of the personal properties
The baseline: NewFilePath = PathNoExtension + "LG" + sConfigName & ". DXF"
What should be put instead of PathNoExtension to call the personal property "T" to have in the end
T1 LG 1250.dxf
Edit: it doesn't work anymore!!! When I launch the macro the first time, ok, but when ke the relaunch, Sw created all the flat pattern configs and brought them out in dxf (See image)
The first time, you already had the config derived from the "flat pattern" or did he create them following the first macro pass?
Out of personal curiosity, since I didn't test it :D, with my code didn't it prevent you from taking all the "flat pattern" functions?
He created the flat pattern for me after the first launch of the macro.
So on the second run, it took into account all the flat pattern configurations.
I haven't tried your technique, I'll look at it right away
I don't really understand your coincoin syntax... :/
Hello
Try the code attached and tell me if it does all the configs except the flat-pattern.
On the other hand, to add a personal property it's a little stronger as a macro!
@Lucas,
For file names, it works perfectly! On the other hand, it exports everything in folded and not unfolded..... :/
If I understood correctly, it exports a first time in unfolded, then a second time in folded.... But the second crushes the first, as the names are identical
Edit 2: I noticed that after launching your Lucas macro, all my configs became unfoldable... I don't understand anything anymore
I put it in .txt you and put everything tidy. But it is a bit in line with the idea of .PL
To retrieve a property in vba you must use the method: Get5 Method (ICustomPropertyManager)
Try the code in the attached file.
Warning: No time to test.
Then you will have to write code to handle the errors...
There is a compilation error on the line:
If Strings.Left(sConfigName, PathSize - 15) = "SM - FLAT - PATTERN" Then 'Check if the last 15 characters are SM-FLaT-PATTERN
Edit: I modified the 'by des' and the 'by des' and the line and ok. Now the debugger comes out "compilation error: Next without For"
I managed to compile it by changing a few lines, but I don't know if it's good.
When I lace it up, I have both dxf, fold and unfolded.....
Hello
I haven't read the whole conversation...
I think I've got what you need,
a macro that saves unfolded dxf items excluding "-FLAT-PATTERN" configurations.
by naming them like this. "part name" - "config name"
All you have to do is extract the files into a folder and paste the contents of each file (.txt) into a different module.
Hello
I haven't read the whole conversation...
I think I've got what you need,
a macro that saves unfolded dxf items excluding "-FLAT-PATTERN" configurations.
by naming them like this. "part name" - "config name"
All you have to do is extract the files into a folder and paste the contents of each file (.txt) into a different module.
Thank you damoon,
I didn't really know the end of your answer.
"Just extract the files into a folder and paste the contents of each file (.txt) into a different module." =)
Otherwise you summed up the situation well^^
While trying your macro, I have an error on Patchsize2 "project or library not found"
FYI, the drawing, I don't care ^^ I just need the dxf of the unfolded
Drawing is useful for the macro, it is requested.
For your mistake you have to activate objects in the library but to be honest I don't remember what I activated^^ it goes back a bit.
A module is an "independent" part in the macro.
on the left side in the VBA editor you have a "modules" folder, you right click on it --> insert --> module and you paste the contents of the second txt.
The first module will call the second...
I didn't understand anything^^
I'm really a VBA weirdo.....
ok I'm going to simplify the macro I put it in you raw apple...
Here I have "cleaned" the macro.
Delete the old ones and paste ALL the content of the macro into a folder (you have to save your macro in the same folder as the "plan.drwdot" file otherwise it won't work^^.
I try this when I get home.
But why put a plan, when it is useless to me?