hexagon logo

Mark a range

Hello all,

I'm trying to write a script that will mark a range of dimensions for vector points.
I've tried a nested For each Cmd in Cmds inside a DO UNTIL LOOP, but my
"LOOP LOGIC IS LOUSY". Disappointed

I would like to enter the range from let's say feature PT150 to feature PT300
but only mark the the corresponding dimensions for the point features in that range.
The program would initially be unmarked, script would ask what the start feature name is
and the end feature name to complete the range and then mark the dimension in that
range only.

I'm sure the Code Guru's could whip the code out in no time without all the infinite loops
I generated. Slight smile

Thanks in advance for any help

Parents
  • Hello Henniger123,
    I tested your script today and the first feature has its dimension marked,
    but all the subsequent features and dimensions are marked until the last feature is
    is found and marked.
    I only want the dimensions marked not the features (vector points in this case).
    My version marks only the dimensions, but like I said previously the very last
    dimension is only partially marked. Haven't figured that out.
    I don't know why your version marks the first dimension, and then marks features
    and dimensions till the end.
    Probably just a small adjustment to the code?
Reply
  • Hello Henniger123,
    I tested your script today and the first feature has its dimension marked,
    but all the subsequent features and dimensions are marked until the last feature is
    is found and marked.
    I only want the dimensions marked not the features (vector points in this case).
    My version marks only the dimensions, but like I said previously the very last
    dimension is only partially marked. Haven't figured that out.
    I don't know why your version marks the first dimension, and then marks features
    and dimensions till the end.
    Probably just a small adjustment to the code?
Children
  • yeah sorry, in my test I had the dimensions of all of them lined up one behind the other. so I didn't see my mistake
  • That would be a Pcdmis setting. Generally it is set up so when you mark a dimension, it also marks the features required to produce that dimension. I think you need to change the Settings Editor entry for EWMarkDependMode from no entry (default is true) to FALSE so that it will not mark the dependent features for the dimension. There is also a EWMarkChildMode option which will mark the children of what you are marking. It has a default of FALSE (if nothing is selected). This is why (generally) you can mark a feature and the dimensions that are dependent on it do not get marked.

    Of course, this is the terminology used in the V3.7 settings editor. I wouldn't be surprised if they have changed it in newer versions.