×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

I Have a question about API for Solid Edge V19 (get specification)

I Have a question about API for Solid Edge V19 (get specification)

I Have a question about API for Solid Edge V19 (get specification)

(OP)
I'm using Solid Edge V19 and VB6 to get a specification from my draft (*.dft).
How can I get specification from the draft in Solid Edge from API?

RE: I Have a question about API for Solid Edge V19 (get specification)

Hi,

hmm, what do you mean with 'specification', the sheet size?
This can be obtained by:

<objDraft>.ActiveSheet.SheetSetup.SheetHeight

also the SheetWidth, SheetSizeOption and other data is stored
within the object SheetSetup

dy

RE: I Have a question about API for Solid Edge V19 (get specification)

(OP)
hi

i do it, but (((

The specification of the drawing is a table which contains the nomenclature of details which enter in assemble with the instruction of quantity and a position of each detail.

e.g.:
--------------------------------------------------------
position | name of detail |description | quantity |
--------------------------------------------------------
     1    |  43.00.00.800  |      pump    |    1       |
--------------------------------------------------------
     8    |  43.00.10.073  |       jar       |    2       |
--------------------------------------------------------

My English is very bad sorry (

RE: I Have a question about API for Solid Edge V19 (get specification)

Hi,

ahh, you mean the partslist. That is available through the
API: set <objPlist> = <objDraft>.PartsList.item(1)

Usually you only have one parts list but it might not be the case
so the <objDraft>.PartsList object is a collection and the
<objDraft>.PartsList.count holds the number of available
partslists if any.
But you won't be able to drill down to the individual cells
for there is no mechanism in the API to do that. The only way
to access them is to copy it to the clipboard:

<objDraft>.PartsLists.Item(1).CopyToClipboard

From there it can be read programatically. The columns are
seperated by 0x09 and the rows by 0x0a. The whole thing is terminated
by 0x0d0a (vbCrLf).

Also possible is to manually select the partslist within the
draft. Then do an RMB (right mouse click) and select 'Copy Contents'
Now you can paste it into Excel for further processing.

dy

RE: I Have a question about API for Solid Edge V19 (get specification)

(OP)
Thank you very much! I gonna to ask last question:) whether it is possible to receive a material of details from the draft (*.dft)?

RE: I Have a question about API for Solid Edge V19 (get specification)

Hi,

do you mean the material that is assigned to the part?

That can be obtained by following the ModelLinks

Dim objPart as object
set objPart = <objDraft>.ModelLinks.item(1).ModelDocument
sMaterial =  objPart.Properties.item("MechanicalModeling").Item("Material").value

Check the ModellDocuments type: when it's an assembly no
material is available unles it has been assigned a WeldmentAssmbly


HTH

dy

RE: I Have a question about API for Solid Edge V19 (get specification)

(OP)
Hi!
Thanks for full answers!
I work in Russia at a machine works and  I interface SolidEdge to our program.In process of development there is a set of questions. Unfortunately nobody knows as to answer my questions in Russia. Thanks you for the help! You save my life once again:)

RE: I Have a question about API for Solid Edge V19 (get specification)

Hi,

you're welcome. To have some samples (VB6) you may
have a look at this site:

[link=http://www.incobase.de/downidx_cad_se.html]SE-Modules[/Link]

dy

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources