What my app did was to loop through the assembly, gather up a part list of unique parts/configurations to export (because non sheet metal parts such as fasteners did not get nested), counted the quantities of each part in the assembly, and along the way grabbed the thickness property of the...
This makes sense...but you dont so much need 200 parts on a drawing as you need 1 part on a drawing, 200 times.
I wrote similar macros for exporting sheet metal assemblies to CAM software. But I had the added advantage of creating a flat pattern view that was pretty much guaranteed to be...
I would have occasional trouble if the dimension was at non-orthagonal angles (say, from an ISO view).
It wasnt so much of a bug (cause swx would read it back in fine) but more a difference of opinion (swx vs acad) as to where the default text placement should be in those situations.
Importing...
What Ive done previously was to use a macro to parse the actual 2d entities out of the drawing view, and get a "bounding box" for the entities.Then Id write my own dxf file, offseting the location of the entities by the lower left corner of the bounding box.
This also allowed me to output a...
>>All good suggestions however I still get the same error. "Sldworks 2005 type library" is already
>> selected in references and IActiveDoc2 gave me the
>> same error as ActiveDoc.
Try a little voodoo here. Bring up the 'References' window again, select the SldWorks.tlb file, and "Browse"...
If it is within a reasonable amount of what SolidWorks thinks it can unfold, then, on the Sheet metal Toolbar, select "Insert bends", and select the face you wish to use as a "base" face for unfolding.
If you do this on a part that has nothing to be considered as a "bent" section, Solidworks...
>>From previous threads on the subject I
learned you cannot access CUSTOM properties and configuration specific properties without opening the file.
Its actually possible, but its by no means automatic. Other applications do it; it's more a matter of how many months of development you are...
Its not quite that simple.
You have to know the DataBase table set up, and the individual record/field data types.
You can then set up queries to return recordsets.
The good news is that with VBA, you can often just import a module written in another Office app (Excel, Access) to your SWX...
Assembly level custom props to part docs
I am trying to (to see if I can) have custom properties,
in an assembly, be propagated down thru the part files,
*without code*
anyone have any tricks? Ill even go from Assy -> dwg-> part
if I have to....
"Quickest way" ? Quickest for you, or ??
Last time I did this, they also decided to go BACK to holes... sometimes.
I made the Holes 2 sets of arcs with .0001" flats between them. The CAM software ignored these .0001" amounts when outputting "holes", and correctly identified them "circles"...
While this is possible, it was so much work I consider it more of a 'stunt' than a process.
Ive done it on a limited basis, and wouldnt consider the code robust enough to read ANY prop on ANY version, but Ive tweaked it enough to read the props we use at my company, and for the possible...