×
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

How can I get contents list from API SE v.19

How can I get contents list from API SE v.19

How can I get contents list from API SE v.19

(OP)
I'm using Solid Edge V19 and VB6 to get contents a lettering from my draft (*.dft).

What is "lettering" (list)? Look figure, please (my English is very bad and i don't know how can to translate this term)
http://img339.imageshack.us/my.php?image=questionih6.jpg

How can I get contents this list?

RE: How can I get contents list from API SE v.19

Hi,
... that's called title block

you can't get it as a whole because it's not an object.
The information is contained in either

 - textboxes which may be on the working sheet or on the
   background sheet. This information is static.
   
 - callouts which contaion either a placeholder to be
   substituted by data pulled from the underlying part
   or plain text

Textboxes only carry a number as well as their placements
coordinates. Both will change when a box is deleted and recreated.
The information can be retrieved and is meaningful. To get them
you would have to examine all items whithin the textbox collection
and check whether they are placed within a distinct area

Callouts can be retrieved also but in case it contains placeholders
(i.e %{Title|R1  for the title} you will get the placeholder *not*
the substituted text. Again you must scan all these by working
the Balloons collection (the Balloon.Callout is 1 for a callout) and check them to be in a well defiend area.

From the above: not a workable solution to follow

Usually most of the data will be retrieved from the part dynamically by callouts.
Inside the part you will find most data within the following object and its methods

<objDraft>.ModelLinks.Item(1).ModelDocument.SummaryInfomation

Other data like weight ara not so easy to obtain.

BTW: what would you like to achieve ?

HTH

dy

RE: How can I get contents list from API SE v.19

(OP)
Hi!

I wished to read the author of the drawing and the name of drawing from title block.I could not make it by means of the above described mechanisms (textboxes & callouts) :(

BTW: i tried to make it by means of SummaryInfomation, and get the information. But she is differed from that which was in a title block.

RE: How can I get contents list from API SE v.19

Hi,

you have to distinguish between two things when retrieving
information from a draft: from the draft itself or from the
underlying part.

In your case you must pull the information from the draft itself:

<objDraft>.SummaryInfo.Author
<objDraft>.FullName  ' path plus filename of draft
<objDraft>.Name  ' filename of draft only

<objDraft> substitute your object for this

Only when pulling information from the underlying part you
must use <objDraft>.ModelLinks.Item(1).Modeldocument.SummaryInfo

Check this object browser in VB. Selceting in Item within the
object browser and presing F1 will open the SE help fro a particular
item. Some items, however, will only show the entry page (help is
not updated form some items since V17).


dy

RE: How can I get contents list from API SE v.19

(OP)
Hi!

I have made all by your advice.
I have received the name of the drawing and the name of the company and they have completely coincided with the label from title block. This is cool! But the author of the drawing neither on the first nor on the second way has not coincided with a label in title block :(

??. ???? ?? ? ?????????? ?????? ???????? ????? ????? ?????????

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