Thread Content
Hello everyone: Those who have used PDMS know that $s can be used to set up shortcut keys for PDMS. For example, $s wpos = q pos wrt world; by entering just the characters “wpos” in the command line, one can achieve the same result as “q pos wrt world”. My question is: what if certain commands contain variables? How can $s be used to simplify them? For instance, in the command “q all box with (attrib east eq 200)”, how can I define “est” and 200 as variables so that they can be used in the command line? I tried using $s ms = q all box with (attrib $s ms1 = ), but when I enter “ms north eq 100 ms1” in the command line, an error appears: “In line 10 of Command/Form Input ^^) eq 200”). Is there any good way to achieve this functionality?
Does Haichuan not have any experts in PDMS?
$s ms =q all box with attrib ms north eq 100 Try this; my execution was successful
That’s strange then; could it be that there’s a problem with (), waiting for an expert to provide a detailed answer
$s ms = q all boxes with (attrib $s ns = ) ms north eq 100 ns is sufficient; the error occurs because the first two digits of ms1 are treated as ms, so change ms1 to ns and this problem will no longer exist
Thank you, CD brother; the problem has been solved. I hope HaiChuan can post more practical application questions related to PDMS, so that everyone can benefit from them better
Kind person, the expert helps me soar. .