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"...
...company.
What it basically comes down to is writing your own standalone code to interpret the binary data in the IStream, and be aware of the switching back and forth between UniCode strings that not only vary between versions and languages, but also between *different nodes in the IStream*...
Referencing Component/Configuration in Assy equations ...
Is this possible?
Can I have 2 configurations of a part file, with config-specific dimensions,loaded into an assembly as 2 different components, and drive that dimension in-context from the assembly? (And have each config have a...
Save yourself some clock cycles and use
Part.Parameter("").VALUE
instead of
Part.Parameter("").SystemValue
"Value" will return units in your current doc props, except for angular units.
...config. (I also store other data as well). I then create a dynamic array of the UDT's.
Recursing thru the assembly, get each Component object, *ensure it is not suppressed or an envelope*, get its Pathname/Referenced Config, then use that Info to loop thru each UDT(component) you've already...
TheTick said ...
>>It is the performance email. I leave it on, in the interest of helping to improve SW.
I guess that must make you a spammer, during beta testing?