bowen192 Posted May 11, 2021 Share Posted May 11, 2021 I've imported a pdf technical drawing into Designer. I want to delete all the dimensions on the drawing. Each dimension is called DIMx (x being a number). Is there a way I can I select all layers with DIM in the name? Quote Link to comment Share on other sites More sharing options...
Staff Dan C Posted May 12, 2021 Staff Share Posted May 12, 2021 Hi @bowen192 On 5/11/2021 at 8:36 AM, bowen192 said: Is there a way I can I select all layers with DIM in the name? Unfortunately Select > Select Same > Name will only select layers with exactly the same layer name, as shown in the below screen recording - 2021-05-12 09-32-15.mp4 Note how all of the layers precisely named 'Test' are selected after running this function, however Test 4, 5 Test & Test6 all remain unselected. Unfortunately this means that currently I believe it's only possible to create this selection of layers manually, my sincerest apologies. I will however put in a request with the developers to expand this feature in the future to include a 'select similar' option, which could allow you to specify certain words or properties to select, even if this does not match the full layer name exactly - somewhat akin to Find and Replace in Publisher. I hope this helps clear things up Quote Link to comment Share on other sites More sharing options...
loukash Posted May 12, 2021 Share Posted May 12, 2021 On 5/11/2021 at 9:36 AM, bowen192 said: Is there a way I can I select all layers with DIM in the name? If you also have Publisher, and if the DIMx layers contain live text, you could use Publisher's Find & Replace panel and its regex search either to blank out the text frame content, or at least quickly jump from one text object to the other. Other than that, an external macro utility could be programmed to traverse through the Layers panel, double-click each layer's name and copy it to the clipboard, analyse it, and delete the layer if its name begins with "DIM". E.g. Keyboard Maestro on Mac definitely can do these kind of things with Affinity apps. (Been there done that. ) It would take, roughly said, perhaps 10–20 minutes to set up and test it, but if there are like dozens or even hundreds of such layers in many documents, it would definitely ease the p.i.t.a. (as in, literally: pain in the arm) in the long run. Dan C 1 Quote MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2 Link to comment Share on other sites More sharing options...
loukash Posted May 12, 2021 Share Posted May 12, 2021 18 minutes ago, loukash said: an external macro utility could be programmed to traverse through the Layers panel, double-click each layer's name Here's a quick'n'dirty "proof of concept". It will get more complex depending on the PDF layer hierarchy, of course. ade_rename_layers_km_macro.mp4 Quote MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2 Link to comment Share on other sites More sharing options...
carl123 Posted May 13, 2021 Share Posted May 13, 2021 On 5/11/2021 at 8:36 AM, bowen192 said: Is there a way I can I select all layers with DIM in the name? No, but is there something else unique about the "DIM" layers e.g. Same Stroke Weight, Colour, Shape etc etc etc. A sample document may help Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.