CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Data Management

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-28-2007, 01:05 AM
ng-first ng-first is offline
Registered User
 
Join Date: Feb 2007
Posts: 45
from model to masterdata

Hi all ,

is there a way from a model
Model m = (Model) getUserObject();
to find the masterdata associated whit it?

Thanks a lot,
Nadia
Reply With Quote
  #2  
Old 03-28-2007, 06:51 AM
ng-first ng-first is offline
Registered User
 
Join Date: Feb 2007
Posts: 45
Re: from model to masterdata

ok , I solved my problem. in this way:

....
Model m = (Model) getUserObject();
Part p= m.getCurrentPart();
String classType = p.getDBTable();
....
now, coul'd someone help me to understand some methods of Model (java)class?

1) method isWorkPlane():
the API say "Indicates if this m.odel's ObjType is of type workplane". what is a workplane?

2) method isWorkPlaneSet():
the API say: "Indicates if this model's ObjType is of type workplane set". what is the type type workplane set?

3) hasValidBomIndicator():
the API say "Returns whether this model has a valid BOM Indicator set." what does it mean? what is the BOM Indicator?

thanks all ,
Nadia
Reply With Quote
  #3  
Old 04-02-2007, 01:55 PM
Steve Steve is offline
Registered User
 
Join Date: Mar 2003
Location: Alabama
Posts: 309
Re: from model to masterdata

Hi Nadia,

Presumably you are programming tools for OneSpace but are not a user of the software?

I'm a user but don't know anything about programming for it!

Workplanes are just that - a plane in space that the user "works" on - where he draws 2D geometry that can then be used to create or modify 3D geometry.

A Workplane set is literally that - a set (group) of workplanes.

My guess from the syntax is that the functions you listed return a boolean answer (yes/no, true/false, 1/0) as to whether or not the object is a workplane or not, or is a workplane set or not.

I'm not sure what the BOM Indicator is all about. Other than it has something to do with detecting a valid Bill of Materials.

Steve
Reply With Quote
  #4  
Old 04-03-2007, 12:15 AM
ng-first ng-first is offline
Registered User
 
Join Date: Feb 2007
Posts: 45
Re: from model to masterdata

thanks for your help steve !!!
by,
Nadia
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:39 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.