cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Dimensions Of Datum points in Table driven Pattern

Re: Changing Dimensions Of Datum points in Table driven Pattern

In Tcl your code:

set name mypart
if [catch {  set M [ ps_file open $name.asm]   }   ]    {
  set M [ps_file open $name.prt]
}
ps_wind set $M
set dimid [lindex [ps_dim list -model $M -pattern d5210] 0]
set dimObj [ps_dim from -model $M $dimid]
$dimObj config -value 900.12
$dimObj show
ps_regen


 

In your code you mix PART/ASSEMBLY. But I don't believe that this cause your problem.

CollectdatumPoints use ProAssembly even if you load a Model.

ObjectwindowCreate may use PRO_PART even if you load an assembly ...

 

But anyhow I tested it again, and after regen the dimension was changed.

For the tree, here the part of the tree for 2 tables and the second one is active with 3 points

 

.3.2 -type GENPAT_TABLE_LIST -array 
.3.2.1 -type GENPAT_TABLE_ENTRY -compound 
.3.2.1.1 -type GENPAT_TABLE_NAME -wstring TABLE1
.3.2.1.2 -type GENPAT_TABLE_INSTANCES -array 
.3.2.1.2.1 -type GENPAT_TABLE_INSTANCE -compound 
.3.2.1.2.1.1 -type GENPAT_TABLE_INSTANCE_INDEX -integer 1
.3.2.1.2.1.2 -type GENPAT_TABLE_INSTANCE_DIMS -array 
.3.2.1.2.1.2.1 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 11.0
.3.2.1.2.1.2.2 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 31.0
.3.2.1.2.1.2.3 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 21.0
.3.2.1.2.2 -type GENPAT_TABLE_INSTANCE -compound 
.3.2.1.2.2.1 -type GENPAT_TABLE_INSTANCE_INDEX -integer 2
.3.2.1.2.2.2 -type GENPAT_TABLE_INSTANCE_DIMS -array 
.3.2.1.2.2.2.1 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 111.0
.3.2.1.2.2.2.2 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 131.0
.3.2.1.2.2.2.3 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 121.0
.3.2.1.3 -type GENPAT_TABLE_EDIT  
.3.2.1.4 -type GENPAT_TABLE_READ  
.3.2.1.5 -type GENPAT_TABLE_WRITE  
.3.2.2 -type GENPAT_TABLE_ENTRY -compound 
.3.2.2.1 -type GENPAT_TABLE_NAME -wstring TABLE2
.3.2.2.2 -type GENPAT_TABLE_INSTANCES -array 
.3.2.2.2.1 -type GENPAT_TABLE_INSTANCE -compound 
.3.2.2.2.1.1 -type GENPAT_TABLE_INSTANCE_INDEX -integer 1
.3.2.2.2.1.2 -type GENPAT_TABLE_INSTANCE_DIMS -array 
.3.2.2.2.1.2.1 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 50.0
.3.2.2.2.1.2.2 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 60.0
.3.2.2.2.1.2.3 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 70.0
.3.2.2.2.2 -type GENPAT_TABLE_INSTANCE -compound 
.3.2.2.2.2.1 -type GENPAT_TABLE_INSTANCE_INDEX -integer 2
.3.2.2.2.2.2 -type GENPAT_TABLE_INSTANCE_DIMS -array 
.3.2.2.2.2.2.1 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 55.0
.3.2.2.2.2.2.2 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 65.0
.3.2.2.2.2.2.3 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 75.0
.3.2.2.2.3 -type GENPAT_TABLE_INSTANCE -compound 
.3.2.2.2.3.1 -type GENPAT_TABLE_INSTANCE_INDEX -integer 3
.3.2.2.2.3.2 -type GENPAT_TABLE_INSTANCE_DIMS -array 
.3.2.2.2.3.2.1 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 70.0
.3.2.2.2.3.2.2 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 80.0
.3.2.2.2.3.2.3 -type GENPAT_TABLE_INSTANCE_DIM_VALUE -double 90.0
.3.2.2.3 -type GENPAT_TABLE_EDIT  
.3.2.2.4 -type GENPAT_TABLE_READ  
.3.2.2.5 -type GENPAT_TABLE_WRITE  
.3.3 -type GENPAT_TABLE_SET_ACTIVE -integer 1

Here I would be able to modify the value. I need to have the tree for the pattern feature with the id 334. To change the last dim (90.0) within the tree:

 

ps_ftree ft
ft config -model $M -id 334 -type pattern
ft get
ft itemconfig .3.2.2.2.3.2.3 -double 99.99
ft redefine