Search the Community
Showing results for tags 'folders'.
-
Lisp to create numbered folders based on selection
benhubel posted a topic in AutoLISP, Visual LISP & DCL
I have some drawings which contain hundreds of numbers (example: 1-218b), each of which is on geometry which will be written as a block into its own folder. I am trying to write a Lisp that will create all of the folders based on the selected text. I have found a few posts about writing a directory, but it's all super confusing to me. General routine process: 1. Get selected text objects 2. Prompt for directory to create new folders in 3. Create a folder for each selected text object, named based on the text It's ok to assume that the text is already selected when the Lisp starts. If no text is selected, I'd just send an error message to the console and end the routine. It's preferable that the directory prompt is GUI based so that I can navigate to the directory, but I am absolutely clueless here. If needed, I can just copy and paste the directory path into the console. The routine doesn't have to work with MText. The files contain only single line text. If I can get any code working, I'll post it, but I think it's going to take a good long while. -
Hello, So basically I work for a company which designs and builds cupboards. We have particular textures available (i.e. different types of wood or gloss) I was wondering if it is possible to be able to drag an appearance (a JPEG image) onto an already drawn cupboard and for the mapping to be automatic. So on the front of the cupboard the wood grain should be vertical and on the side of the cupboards it is also vertical but with plain coloured filleted edging. Please could you help to find: 1) How to make a folder of our personal wood grains available from the SolidWorks Screen 2) How to make the mapping automatic so that when applying a certain wood grain it is always orientated in the correct direction along with the correct coloured edges. Any help will be greatly appreciated Thank you very much Sarah x