ProductOccurrence.GetAttributeOnConnectedPorts()
This method is deprecated.
For more information about the methods to be used, see PipeTube_Physical_Types Methods, HVAC_PhysicalTypes Methods or Raceway_PhysicalTypes Methods.
ProductOccurrence.GetAttributeOnConnectedPorts()This method is deprecated. For more information about the methods to be used, see PipeTube_Physical_Types Methods, HVAC_PhysicalTypes Methods or Raceway_PhysicalTypes Methods. ProductOccurrence.GetAttributeOnConnectedPorts()This method is deprecated. For more information about the methods to be used, see PipeTube_Physical_Types Methods, HVAC_PhysicalTypes Methods or Raceway_PhysicalTypes Methods. ProductOccurrence.GetRelatedObjects()This method is deprecated. For more information about the methods to be used, see PipeTube_Physical_Types Methods, HVAC_PhysicalTypes Methods or Raceway_PhysicalTypes Methods. ProductOccurrence.IsContaining()This method checks whether the given geometry intersects the space. Arguments
ReturnTypeBoolean
Example/* SpaceOccurrence is the ProductOccurrence of a space object, feature is Feature object */ let result(boolean) let Status(String) result=SpaceOccurrence.IsContaining(feature, Status) if(result) Message("Intersection Status: ", Status) ProductOccurrence.QueryObjects()This method retrieves the objects that are intersecting a given space based on 3D index search. SignatureProductOccurrence.QueryObjects(RootReference : PLMCoreReference, FilterVolumeMode : Integer, Clearance : LENGTH, ProductType : String, ListOfObjects : List) : Boolean Arguments
Example/* SpaceOccurrence(ProductOccurrence) : input occurrence of the Space RootRef(PLMCoreReference) : Input root reference to consider as root */ /* Mode of query */ let filterVolumeMode (Integer) /* Clearance to consider in the query */ let clearance(LENGTH) /* Product type to filter */ let productType(String) /* Output list of product occurrences of the objects that are intersecting the given space */ let listOfPrdOccurences(List) /* Result of the query */ let QueryResult(Boolean) let i(Integer) Let prdOccurrence(ProductOccurrence) /* just to hold the individual query result from the output list */ let objQueryResult(PLMOccurrenceQueryResult) let i(Integer) filterVolumeMode = 3 clearance=1.5m i=1 /* Query for the objects. “SpaceOccurrence” is the input occurrence of the space that is being intersected by some products. “RootRef” is the root product reference under which the intersecting products are to be retrieved */ QueryResult = SpaceOccurrence.QueryObjects(RootRef, filterVolumeMode, clearance, productType, listOfPrdOccurences) if(QueryResult) { for i while i <= listOfPrdOccurences.Size() { objQueryResult = listOfPrdOccurences.GetItem(i) if(objQueryResult <> NULL) { objQueryResult->LoadResult(FALSE) set prdOccurrence= objQueryResult.LoadedOccurrence } } } ProductOccurrence.QuerySpaces()This method retrieves the ship spaces that are intersected by a given product occurrence based on 3D index search. SignatureProductOccurrence.QuerySpaces(SpaceConceptRoot : SPP_SpaceConceptRoot, FilterVolumeMode : Integer, Clearance : LENGTH, SpacePLMType : String, ExtensionPLMType : String, ListOfSpaces : List) : Boolean Arguments
Example/* ObjectOccurrence(ProductOccurrence) : input occurrence of the product */ /* Mode of query */ let filterVolumeMode(Integer) /* Clearance to consider in the query */ let clearance(LENGTH) /* Space type to filter */ let spaceType(String) /* Extension type to filter */ let ExtensionPLMType(String) /* Output list of product occurrences of the spaces that are intersected by the given object */ let ListOfPLMSpaceOccurences (List) /* just to hold the individual PLMOccurenceQueryResult of spaces from the output list */ let OccurenceSpaceQueryResult(PLMOccurrenceQueryResult) let i(Integer) /* Result of the query*/ let result(Boolean) Let SpaceOccurrence(ProductOccurrence) /* Set QueryMode as Partly In(3) */ filterVolumeMode =3 i=1 /* Query for Spaces. “ObjectOccurrence” is the input product occurrence that intersects some space references */ /* Space Folder which is set in Space Allocation Resource Set of Data Setup is considered as Root */ result = ObjectOccurrence.QuerySpaces(filterVolumeMode, clearance, spaceType, ExtensionPLMType, ListOfPLMSpaceOccurences) if(result) { for i while i <= ListOfPLMSpaceOccurences.Size() { OccurenceSpaceQueryResult = ListOfPLMSpaceOccurences.GetItem(i) if(OccurenceSpaceQueryResult <> NULL) { OccurenceSpaceQueryResult->LoadResult(FALSE) set SpaceOccurrence = OccurenceSpaceQueryResult.LoadedOccurrence } } } |