Issue 4563: I haven't found any way to create ModelInstance (cad-ftf) Source: Open CASCADE (Mr. Mikhail Kazakov, m-kazakov@opencascade.com, m-kazakov@eads.matradatavision.com) Nature: Uncategorized Issue Severity: Summary: 7. Creation of ModelInstances. I haven't found any way to create ModelInstance. And it's not explained in the specification. Resolution: see above Revised Text: Added new section 2.2.5, describing new interface: Section 2.2.5 ModelInstanceFactory Interface The ModelInstanceFactory interface provides the ability to create ModelInstances which are used to support assemblies. A ModelInstanceFactory is created from the Model interface (Section 2.2.4) and allows the input of location information. interface ModelInstanceFactory { CadMain::ModelInstance new_model_instance ( in CadUtility::TransformationStruct global_location) raises (CadUtility::CadError); // Creates a new ModelInstance with initial transformation // according the global coordinate system }; new_model_instance Returns a created ModelInstance using the input global_location (CadUtility::TransformationStruct, Section 2.7) Modified section 2.2.2.2, Model Interface, to provide a new operation that creates the ModelInstanceFactory : new_model_instance_factory Returns a ModelInstanceFactory (Section 2.2.5) that enables the creation of new ModelInstances. Actions taken: September 5, 2001: received issue July 5, 2002: closed issue Discussion: A ModelInstanceFactory interface was added to the CadMain module. This interface enables the creation of ModelInstances: interface ModelInstanceFactory { CadMain::ModelInstance new_model_instance ( in CadUtility::TransformationStruct global_location) raises (CadUtility::CadError); // Creates a new ModelInstance with initial transformation // according the global coordinate system }; An operation was added to the Model interface to support access to this interface: ModelInstanceFactory new_model_instance_factory () raises (CadUtility::CadError); //Creates the ModelInstanceFactory, which is used to // add ModelInstances End of Annotations:===== Date: Wed, 05 Sep 2001 13:13:07 +0200 From: "Mikhail KAZAKOV (mko)" Organization: Matra Datavision X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,fr,fr-FR MIME-Version: 1.0 To: "jcad_services@yahoogroups.com" , cad ftf Subject: New issues to resolve References: <5.1.0.14.2.20010829112031.03733d48@popserve.grc.nasa.gov> Content-Type: multipart/mixed; boundary="------------13CB1A6C7FE5F345A8A69D28" X-UIDL: VF6e98+\!!WWYd9f3=e9 Dear colleagues, I've just returned from vacation (thus sorry for silence) and I would like to give some new issues according our spec. to resolve: 7. Creation of ModelInstances. I haven't found any way to create ModelInstance. And it's not explained in the specification. Date: Thu, 20 Sep 2001 20:09:53 +0200 From: "Mikhail KAZAKOV (mko)" Organization: Matra Datavision X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,fr,fr-FR MIME-Version: 1.0 To: cad ftf , "jcad_services@yahoogroups.com" Subject: Proposals for issues resolution Content-Type: multipart/mixed; boundary="------------376082FA927FA0B1E8BDFD5A" X-UIDL: o$Fe97[c!!)``d9diTd9 Dear colleagues, I'd like to propose some possible ways to resolve next issues: Issue 4563 Creation of ModelInstances Possible resolutions: Creation of new ModelInstanceFactory interface in CadFoundation module: interface ModelInstanceFactory { CadMain::ModelInstance new_model_instance (in CadUtility::TransformationStruct transformation) raises (CadUtility::CadError); // Creates a new ModelInstance with initial transofmration according the global coordinate system } + add new methods to Model interface interface Model : CadFoundation::Attributable { ... ModelInstanceFactory new_model_instance_factory () raises (CadUtility::CadError); //Creates the ModelInstanceFactory, which is used to add ModelInstances void add_as_child(in Model mode) raises (CadUtility::CadError); void remove_from_childs(in Model model) raises (CadUtility::CadError); ... }