What's New in V5R7 in CAA V5 Automation Objects


There are new modification in V5R7sp5:

Modified methods and properties
Publication::Valuation (Property Read/Write) SP1 Previously inoperative. The argument type has been changed from Reference to CATBaseDispatch and is so upward compatible.
File::Path (Property Read)
File::ParentFolder (Property Read/Write)
Folder::Path (Property Read)
Folder::ParentFolder (Property Read/Write)
SP4 The File object and the Folder object now inherit from the FileComponent Object and those methods have been moved to the new base class, now allowing polymorphism when processing  both type of objects. 
No impact on macros, VB/VBA projects must refresh their references to the CATIA V5 InfInterfaces Object library type library.
CATIAExpertCheckRuntime::Comment (Property Read/Write) SP4 Method has been moved to the base class: ExpertRuleBaseComponentRuntime::Comment (Property Read/Write). No impact on macros, VB/VBA projects must refresh their references to the CATIA V5 GenKnowledgeInterfaces Object library type library..
CATIAExpertRuleBaseRuntime::RuleBaseEdition (Property Read)
CATIAExpertRuleBaseRuntime::RuleSet (Property Read)
SP4 Previously inoperative. Signature modifications now allows return values to be correctly handled. No impact on macros, VB, VBA. Signature of generated .h files in CAA has changed.
Suppressed methods and properties
File::returnIID (Property Write)
Folder::returnIID (Property Write)
SP5
StrMember::SectionFolder (Property Write) SP5 Was inoperative, has been removed from exposition.

The end of this article presents automation object, methods and properties that have been added in V5R7, since V5R6 GA to enhance CAA V5 automation capabilities, support functional evolutions and correct defects. Some of those modification already exist on V5R6 service packs. A few properties and methods have been modified or suppressed. VB and VBScripts code using those methods may have to be modified. VB projects using the corresponding objects must be recompiled. 

New classes
New methods and properties
Modified methods and properties
Suppressed classes, methods and properties

New classes
Drafting DrawingComponent Represents a drawing ditto.
DrawingComponents
Infrastructure Workbench
Misc SchWorkbench
Part Design Rotate
Scaling2
Symmetry
Translate
Product Structure AssemblyConvertor
Structure Design StrFoundation A Structure Foundation object.
StrFoundations
Wireframe and Surface HybridShapeBump
HybridShapeLineBisecting
HybridShapeSphere
HybridShapeWrapCurve

[Top]

 

New methods and Properties
AnalysisEntity::AddSupportFromConstraint
AnalysisManager::CreateReferenceFromGeometry
AnalysisManager::CreateReferenceFromObject
AnalysisModel::AdaptivityManager (Property Read)
AnalysisSets::AddExistingSet
Activity::GetTechnologicalObject
Items::Add
Resources::Add
DrawingSheet::GetPaperHeight
DrawingSheet::GetPaperWidth
DrawingSheet::SetPaperHeight
DrawingSheet::SetPaperWidth
DrawingText::InsertVariable
DrawingView::Components (Property Read)
DrawingView::GetViewName
DrawingView::SetViewName
GenerativeViewBehavior::UnBreakoutNum
ExpertReportObject::getTupleSize
ExpertRuleBaseComponentRuntimes::ShallowCount
ExpertRuleBaseComponentRuntimes::ShallowItem
ExpertRuleBaseComponentRuntimes::ShallowRemove
ExpertRuleBaseRuntime::Import
ExpertRuleBaseRuntime::ImportFromFile
HybridShapeAssemble::AddSubElement
HybridShapeAssemble::GetConnex
HybridShapeAssemble::GetDeviation
HybridShapeAssemble::GetSimplify
HybridShapeAssemble::GetSubElement
HybridShapeAssemble::GetSuppressMode
HybridShapeAssemble::RemoveSubElement
HybridShapeAssemble::SetConnex
HybridShapeAssemble::SetDeviation
HybridShapeAssemble::SetSimplify
HybridShapeAssemble::SetSuppressMode
HybridShapeFactory::AddNewBump
HybridShapeFactory::AddNewLineBisecting
HybridShapeFactory::AddNewLineBisectingOnSupport
HybridShapeFactory::AddNewLineBisectingOnSupportWithPoint
HybridShapeFactory::AddNewLineBisectingWithPoint
HybridShapeFactory::AddNewSphere
HybridShapeFactory::AddNewWrapCurve
HybridShapeFactory::ChangeFeatureName
HybridShapeFactory::GSMGetObjectFromReference
HybridShapeSplit::Support (Property Read/Write)
HybridShapeTrim::Simplify (Property Read/Write)
HybridShapeTrim::Support (Property Read/Write)
Application::InputBox
Application::MsgBox
PageSetup::Scaling1To1 (Property Read/Write)
SendToService::SetDirectoryFile
SendToService::SetDirectoryOneFile
Relation::GetInParameter
Relation::GetOutParameter
Relation::NbInParameters (Property Read)
Relation::NbOutParameters (Property Read)
Relations::CreateLaw
Relations::CreateSetOfEquations
ManufacturingActivity::ToolAssembly (Property Read)
ManufacturingOperation::SetTool
ManufacturingProgram::GetNCOutputFile
ShapeFactory::AddNewRotate2
ShapeFactory::AddNewScaling2
ShapeFactory::AddNewSymmetry2
ShapeFactory::AddNewTranslate2
StrObjectFactory::ExtendProductAsFoundation

[Top]

 

Modified methods and properties
AnalysisEntity::AddSupportFromPart Due to problems for recording interactions using the precedent signature, the capability to add a support from a Part sub-element is now provided by AnalysisEntity::AddSupportFromProduct 

The following code:

   oAnalysisEntity.AddSupportFromPart(oPart, oRef)

may be replaced by:

   oAnalysisEntity.AddSupportFromPart(oPart.Product, oRef)

The name of the method has been kept with a different signature to add a support from a part in a product.

ExpertRuleBaseRuntime::Report A new boolean parameter has been added that allows to specify if a browser must be launched or not on the generated report. 
ManufacturingMachine::Comment (Property Read) The parameter is now inout instead of out. Transparent to VB/VBScript users but impacted VB projects must be recompiled.

[Top]

 

Suppressed methods, classes and properties
AssemblyFeature::BooleanOperation,
AssemblyFeature::Hole,
AssemblyFeature::Pocket,
AssemblyFeature::Split

Those methods have been removed. Each AssemblyFeature object (AssemblySplit, AssemblyRemove, AssemblyPocket and AssemblyHole) now inherits from AssemblyFeature, the specific methods of each object are so now directly available on the object retrieved from the AssemblyFeatures collection. For example, the following code:

  For each oAsmFeat in oAssemblyFeatures
     MsgBox oAsmFeat.Split().SplittingSide()
  Next

Must be replaced by:

  For each oAsmFeat in oAssemblyFeatures
       MsgBox oAsmFeat.SplittingSide()
  Next
HybridShapeLineNormalCrv,
HybridShapeFactory::AddNewLineNormalCrv
The corresponding interactive command has disappeared since V5R2. This object and the associated creation method of the HybridShapeFactory object have so been removed. 
ManufacturingProgram::GetOutputFile Has been renamed into ManufacturingProgram::GetNCOutputFile

[Top]