A new day, a fresh new post.. about another problem
I got this pattern within a sub-assy.
I can succesfully and without any hassle alter the D3 dimension ofit (the spacing of the pattern). But
For some odd reason i can't seem to change the D1 dimension of thepattern (dictates the # of instances)
Allow me to post a snippet of my code :
boolstatus =modeldoc2.Extension.SelectByID2("D1@patroonlinks@Deur-1@Draaideur", "DIMENSION", -0.5391050629386,1.732050214792, 0.07460631424376, False, 0, Nothing, 0)
Set myDimension = modeldoc2.Parameter("D1@patroonlinks@Deur.Assembly")
myDimension.SystemValue = asch
boolstatus = modeldoc2.Extension.SelectByID2("D3@patroonlinks@Deur-1@Draaideur", "DIMENSION", -0.5466265051487,1.747759246485, 0.06642127771258, False, 0, Nothing, 0)
Set myDimension = modeldoc2.Parameter("D3@patroonlinks@Deur.Assembly")
myDimension.SystemValue = (nuh - 456) / (asch - 1) / 1000
asch and nuh are both singles .
asch varies between 2 - 5
So nothing exotic here I suppose.
I was wondering if this has anything to do with this "scope ofselection" that seems to rule over parts/features in sub-assy's ?But then again, it does change 1 of 2 dimensions, so why not both ?
All advice / inputs are more then welcome !
Greetings,
BertSolidworksApi macros
I got this pattern within a sub-assy.
I can succesfully and without any hassle alter the D3 dimension ofit (the spacing of the pattern). But
For some odd reason i can't seem to change the D1 dimension of thepattern (dictates the # of instances)
Allow me to post a snippet of my code :
boolstatus =modeldoc2.Extension.SelectByID2("D1@patroonlinks@Deur-1@Draaideur", "DIMENSION", -0.5391050629386,1.732050214792, 0.07460631424376, False, 0, Nothing, 0)
Set myDimension = modeldoc2.Parameter("D1@patroonlinks@Deur.Assembly")
myDimension.SystemValue = asch
boolstatus = modeldoc2.Extension.SelectByID2("D3@patroonlinks@Deur-1@Draaideur", "DIMENSION", -0.5466265051487,1.747759246485, 0.06642127771258, False, 0, Nothing, 0)
Set myDimension = modeldoc2.Parameter("D3@patroonlinks@Deur.Assembly")
myDimension.SystemValue = (nuh - 456) / (asch - 1) / 1000
asch and nuh are both singles .
asch varies between 2 - 5
So nothing exotic here I suppose.
I was wondering if this has anything to do with this "scope ofselection" that seems to rule over parts/features in sub-assy's ?But then again, it does change 1 of 2 dimensions, so why not both ?
All advice / inputs are more then welcome !
Greetings,
BertSolidworksApi macros
