API: Getting view or model referenced by New BOMtable
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
API: Getting view or model referenced by New BOMtable

 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks
Author Message
CS
Guest





Posted: Fri Dec 17, 2004 11:45 pm    Post subject: API: Getting view or model referenced by New BOMtable Reply with quote

I can't find any way to figure out which view is referenced by the new bom
table. I first thought it would be an object of the view that was selected
when it was created but it seems that it is a part of the sheet view. My
goal is actually to access the model that is referenced through the bom. I
see there is a way to get the config or configs that are referenced but
nothing for the Model or the View that are referenced. Anyone?

Corey

Back to top
Evan T. Basalik
Guest





Posted: Wed Dec 22, 2004 8:33 am    Post subject: Re: Getting view or model referenced by New BOMtable Reply with quote

Have you tried using the BOM.GetFeature? I haven't tried it, but you might
be able to then get the name of the feature. Could that feature be the
model or view?

Evan


"CS" <C@S.COM> wrote in message news:32gna9F3kjmdcU1@individual.net...
Quote:
I can't find any way to figure out which view is referenced by the new bom
table. I first thought it would be an object of the view that was
selected
when it was created but it seems that it is a part of the sheet view. My
goal is actually to access the model that is referenced through the bom.
I
see there is a way to get the config or configs that are referenced but
nothing for the Model or the View that are referenced. Anyone?

Corey

Back to top
CS
Guest





Posted: Wed Dec 22, 2004 8:32 pm    Post subject: Re: Getting view or model referenced by New BOMtable Reply with quote

This is the debug string I got from the following

Set bomf = ThisAnnotation.BomFeature
Set feat = bomf.GetFeature
Debug.Print feat.Name

Bill Of Materials1

so it appears that BomFeature is only giving access to the Feature object of
the Bom

Though earlier I tried Feat.getparents and it came up with one object but
when I tried to use it as a view I got a type mismatch.....OOOOHHH.....

Ahhhh....I passed the object to a feature and it's name is the referenced
model. Thank you Evan for invoking this thought process.

Corey

"Evan T. Basalik" <Evan(do not dare spam me -
remove)Basalik@alumni.clemson.edu> wrote in message
news:pU5yd.1224$g55.814@bignews3.bellsouth.net...
Quote:
Have you tried using the BOM.GetFeature? I haven't tried it, but you
might
be able to then get the name of the feature. Could that feature be the
model or view?

Evan


"CS" <C@S.COM> wrote in message news:32gna9F3kjmdcU1@individual.net...
I can't find any way to figure out which view is referenced by the new
bom
table. I first thought it would be an object of the view that was
selected
when it was created but it seems that it is a part of the sheet view.
My
goal is actually to access the model that is referenced through the bom.
I
see there is a way to get the config or configs that are referenced but
nothing for the Model or the View that are referenced. Anyone?

Corey





Back to top
CS
Guest





Posted: Tue Dec 28, 2004 10:27 pm    Post subject: Re: Getting view or model referenced by New BOMtable Reply with quote

Darn it. After looking closer I found that the feature returned as the
parent feature is the drawing itself (Which is in this case the same as the
model.) Using it would be a safe bet for most of our drawings but I don't
want to rely on most of the time. I may resort to using the view specified
in sheet props until I can find a clean way of getting the View used to
create the BOM.

Corey

"CS" <C@S.COM> wrote in message news:32ti07F3pnqfcU1@individual.net...
Quote:
This is the debug string I got from the following

Set bomf = ThisAnnotation.BomFeature
Set feat = bomf.GetFeature
Debug.Print feat.Name

Bill Of Materials1

so it appears that BomFeature is only giving access to the Feature object
of
the Bom

Though earlier I tried Feat.getparents and it came up with one object but
when I tried to use it as a view I got a type mismatch.....OOOOHHH.....

Ahhhh....I passed the object to a feature and it's name is the referenced
model. Thank you Evan for invoking this thought process.

Corey

"Evan T. Basalik" <Evan(do not dare spam me -
remove)Basalik@alumni.clemson.edu> wrote in message
news:pU5yd.1224$g55.814@bignews3.bellsouth.net...
Have you tried using the BOM.GetFeature? I haven't tried it, but you
might
be able to then get the name of the feature. Could that feature be the
model or view?

Evan


"CS" <C@S.COM> wrote in message news:32gna9F3kjmdcU1@individual.net...
I can't find any way to figure out which view is referenced by the new
bom
table. I first thought it would be an object of the view that was
selected
when it was created but it seems that it is a part of the sheet view.
My
goal is actually to access the model that is referenced through the
bom.
I
see there is a way to get the config or configs that are referenced
but
nothing for the Model or the View that are referenced. Anyone?

Corey





Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB