Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

Garik

Computer
May 4, 2007
8
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)

How can I get contents this list?
 
Replies continue below

Recommended for you

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
 
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.
 
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
 
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 :(

??. ???? ?? ? ?????????? ?????? ???????? ????? ????? ?????????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor