hello everyone, is possible check if 2 pattern are equal or not?
i have this 2 line on different level trnsfered from cad and i need to check if these are the same or not.
thanks in advance for the help
Solved! Go to Solution.
Solved by icse. Go to Solution.
you can try somehting like this:
entity $lvl1 = input entity level 'Select first'
entity $lvl2 = input entity level 'Select second'
EDIT MODEL ALL DESELECT ALL
EDIT LEVEL ${lvl1.Name} SELECT WIREFRAME
EDIT LEVEL ${lvl2.Name} SELECT WIREFRAME
string $p = new_entity_name('pattern')
CREATE PATTERN ;
EDIT PATTERN ${p} INSERT MODEL
EDIT PATTERN ${p} DESELECT ALL
EDIT PATTERN ${p} SELECT DUPLICATES
if number_selected('pattern', $p) != 0 {
message info 'Equal'
} else {
message info 'Not Equal'
}
purge pattern ${p} yes
I did not tested this properly, there might be some edge cases...
you can use this command to filter:
EDIT SELECTION MODEL FILTER '255, 128, 0'
entity $lvl1 = input entity level 'Select first'
entity $lvl2 = input entity level 'Select second'
EDIT MODEL ALL DESELECT ALL
EDIT LEVEL ${lvl1.Name} SELECT WIREFRAME
EDIT LEVEL ${lvl2.Name} SELECT WIREFRAME
//your color
EDIT SELECTION MODEL FILTER '255, 128, 26'
string $p = new_entity_name('pattern')
CREATE PATTERN ;
EDIT PATTERN ${p} INSERT MODEL
EDIT PATTERN ${p} DESELECT ALL
EDIT PATTERN ${p} SELECT DUPLICATES
if number_selected('pattern', $p) != 0 {
message info 'Equal'
} else {
message info 'Not Equal'
}
purge pattern ${p} yes
Can't find what you're looking for? Ask the community or share your knowledge.