APAR status
Closed as Permanent restriction.
Error description
Problem: Creation of local sensor for Analysis via CATScript fails with message ScriptingERR_1002 . Scenario: 1. Launch the CATIA. 2. Open the attached Demo.CATAnalysis 3. Run the Compute Command. 4. Go to Tool > Macro > Macros. Select the SensorScript.CATScript and run it. . Actual Result: Creation of local sensor returns an error. Script fails at the call of BasicComponent::SetReference method . Expected Result: Creation of local sensor should be successful. .
Local fix
Problem summary
Creation of local sensor for Analysis via CATScript fails w ith message ScriptingERR_1002 Problem: Creation of local sensor for Analysis via CATScript fails with message ScriptingERR_1002 . Scenario: 1. Launch the CATIA. 2. Open the attached Demo.CATAnalysis 3. Run the Compute Command. 4. Go to Tool > Macro > Macros. Select the SensorScript.CATScript and run it. . Actual Result: Creation of local sensor returns an error. Script fails at the call of BasicComponent::SetReference method . Expected Result: Creation of local sensor should be successful. .
Problem conclusion
THIS PROBLEM IS PERMANENT RESTRICTION IN CATIA Incident Diagnosis: Creation of local sensor for Analysis using existing user created image via CATScript fails . Restriction Explanation: The way the local sensot is being created is not valid. This is not supported, as well in interactive application than using VB. We cannot use a user created image as input for a local sensor. Reason: a feature cannot be aggregated (tk_component) in several features . By-Pass Example of VB Use Case to create local sensor right way is as below: =========================== Set analysisSets1 = analysisCase1.AnalysisSets Set analysisSet1 = analysisSets1.ItemByType ("SensorSet") Set analysisEntities1 = analysisSet1.AnalysisEntities ' --------------------------------------- 'Creation of local sensor ' --------------------------------------- Set analysisLocalSensor1 = analysisEntities1.Add ("SAMImageSensor") ' --------------------------------------- ' We set the support of the local sensor ' --------------------------------------- Set part1 = partDocument1.Part Set reference1 = part1.CreateReferenceFromName ("Selection_RSur:(Face:(Brp:(Pocket.1;0:(Brp: (Sketch.2;6)));None:();Cf9: ());MechanicalTool.1;Dynamic)") analysisLocalSensor1.AddSupportFromProduct product1, reference1 ' --------------------------------------- ' We set the type and name of the local sensor : Translational Displacement Norm ' --------------------------------------- analysisLocalSensor1.XMLName="Sensor_Disp_Iso" analysisLocalSensor1.Name = "DisplacementMagnitude" Set analysisSet2 = analysisSets1.ItemByType ("StaticSet") Set reference2 = analysisManager1.CreateReferenceFromObject= (analysisSet2) Set reference2 = reference2.Parent bSTR1 = reference2.Name bSTR2 = reference2.Name ' --------------------------------------- ' For each local sensor: ' - We point the corresponding solution (of the current case) ' - We define the post-pro: max ' - We define the parameters (with or without) ' --------------------------------------- Set basicComponents1 = analysisLocalSensor1.BasicComponents Set basicComponent1 = basicComponents1.GetItem ("SAMOccSolutionFilter.1") Set basicComponents2 = basicComponent1.BasicComponents Set basicComponent2 = basicComponents2.GetItem ("SAMSolutionPtr.1") basicComponent2.SetReference "ConnectorList", 0, 0, 0, reference2 Set basicComponent3 = basicComponents2.GetItem ("SAMEnumOccurrences.1") basicComponent3.SetValue "Values", 0, 0, 0, 1 Set basicComponent5 = basicComponents1.GetItem ("PostProType") basicComponent5.SetValue "", 0, 0, 0, 3 Set basicComponent6 = basicComponents1.GetItem ("WithParameters.1") basicComponent6.SetValue "", 0, 0, 0, TRUE =========================== . List of available local sensors names (XMLName): . GPS product: Sensor_Disp_Iso :- Displacement Magnitude Sensor_Disp :- Displacement Vector Relative_Sensor_Disp :- Relative Displacement Vector Sensor_Rotation :- Rotation Vector Sensor_Stress_VonMises :- Von Mises Stress Sensor_EstimatedError :- Error . EST product: Sensor_Stress_SymTensor :- Stress Tensor Sensor_Stress_PpalShearing :- Principal Shearing Sensor_Stress_PpalTensor :- Principal Stress Tensor Sensor_Strain_PpalTensor :- Principal Strain Tensor Sensor_Strain_SymTensor :- Strain Tensor Sensor_Force :- Force Sensor_Moment :- Moment Sensor_ElasticEnergy :- Elastic Energy Sensor_Display_clearance :- Clearance Sensor_Acceleration :- Acceleration Vector Relative_Sensor_Acceleratio :- Relative Acceleration Vector Sensor_Velocity :- Velocity Vector Relative_Sensor_Velocity :- Relative Velocity Vector Surface_Sensor_Stress_SymTensor :- Surface Stress Tensor Surface_Sensor_Stress_PpalTensor :- Surface Principal Stress Tensor .
Temporary fix
Comments
APAR Information
APAR number
HD85943
Reported component name
CATIA V5 NT>XP
Reported component ID
569151000
Reported release
519
Status
CLOSED PRS
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-06-23
Closed date
2009-06-26
Last modified date
2009-06-26
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA V5"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"519","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
26 June 2009