| FORUM

FEDEVEL
Platform forum

Problem of Not function in query and rules

quakermaster , 04-29-2020, 10:28 PM
Master @Feranec, I'm learning the query language of Altium and encounter a problem. I want to query the objects which belong to net C14_2. First I input InNet('C14_2'), the query result is correct. All the objects which belong to net C14_2 are masked include regions, tracks, pads, polys, even via sand TH pads. Then I want to query other object which don't not belong to Net C14_2. I input Not InNet('C14_2'), The result is weird. The polys and tracks and regions are correctly masked. But the pads, TH pads, vias are not masked. I another word, the query result is wrong. Is that a bug or my query method is wrong? If I want to query the objects which not belong to a certain net. How can I do it?
robertferanec , 05-01-2020, 02:38 AM
Try (Net <> 'NetName')

Simple way how to create Filters is to use Find Similar (Right click on an object -> Find Similar Objects, then adjust the settings, check Create Expression and press Apply or OK)

quakermaster , 05-02-2020, 02:52 AM
Thank you very much!! That's the answer of all problem.
Use our interactive Discord forum to reply or ask new questions.
Discord invite
Discord forum link (after invitation)

Didn't find what you were looking for?