2019-04-23
11:23 AM
- last edited on
2025-01-02
02:55 PM
by
Molinda Prey
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2019-06-21 03:47 AM
dim pfsj2[]
pen 1
for i = 1 to MULTIPLECO_A
jdsl=0 !Calculate the number of points
!----------------------------get profile number and geometry
n = request{2}("Profile_components", myProfileIdx, jmsl, jglx) !profile number
n = REQUEST ("Profile_default_geometry", myProfileIdx, pfsj2) !profile geometry
if jmsl>0 then
for i2 = 1 to jmsl
!------------------------------------Collection point
n = REQUEST{3} ("Profile_component_info", myProfileIdx, i2, "gs_profile_surface", _surface) !MAT
for i3 = 1 to pfsj2[i2]
jdsl=jdsl+1 !Calculate the number of points
x=pfsj2[jmsl+5*jdsl-5+1]
y=pfsj2[jmsl+5*jdsl-5+2]
if pfsj2[jmsl+5*jdsl]=900 then sn = 900
if pfsj2[jmsl+5*jdsl]=4000 then sn = 4015
if pfsj2[jmsl+5*jdsl]=-1 then sn = -1
if pfsj2[jmsl+5*jdsl]=0 then sn = 15
put x,y,sn,_surface
next i3
!------------------------------------MODEL
SPRISM_{4} _surface,_surface,_surface,1+2+4+8,
nsp/4,
0, 0, 0, 1,1,0,
0, 0, 0, 1,0,0,
get(nsp)
next i2
endif
next i
2019-06-21 05:00 AM
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2019-06-21 05:23 AM
Lingwisyer wrote:
The issue with using an array in the parameters to define the profile is that the selection can only be done byindexrather than by drop down and since you cannot view the index numbersanywhere other than the Attribute Manager, this is not a viable option. If we were able to use requests in the Parameter Scriptthis could have worked as then you could have a second and third dummie parameter with one being a standard profile selection, and the other displaying the index numberof the selected profile, but alas, this is not the case...
If you can modify parameter arrays via theUI Scriptthis might be possible, as requests work there. The extra work here may as well be used to duplicate standard profile parameters with additional HIDEPARAMETERstatements.
Ling.
2019-06-21 05:37 AM
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2019-06-26 10:42 AM
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |