I am very very new to solid edge programming (started today), i hope you can help me
In the attachment draft, there is a part list and the 4th column shows the quantity of each assembly/part. The problem is to get the quantities and write each quantity to each assembly/part file as textbox.
Posted by: Taner Pro Post date: 10/3/2007 3:22:23 AM
The 1st thing I would suggest you do is download and install my free Solid Edge Spy product. You can find it in the Products page. Then you can open your Draft in Solid Edge, connect to Solid Edge in Solid Edge Spy and then you'll be able to see the runtime COM object model. Once you've done that, navigate to the following path:
Application -> ActiveDocument -> ActiveSheet -> DrawingViews -> Items -> DrawingView XXX -> ModelLink -> ModelDocument -> Occurrences -> Items -> (Any item is fine). At that point, you'll see the objects properties on the right where you should see Quantity. You can loop through the Occurrences to get all of the items quantities.
The 2nd part of your question I don't understand. i.e. Writing each quantity to each assembly/part file as textbox. Can you be a little more descriptive of what you're wanting here?
Also, if you need a coding example, please specify the language you're wanting to use. You might also take a look at my Downloads page. It has many coding examples from previous Solid Edge Developers Conferences that I've spoken at.
Posted by: Jason Newell Post date: 10/3/2007 9:15:36 AM