Search the Community
Showing results for tags 'pen'.
-
I don't know if anyone can help with this. I have been trying to use python scripting to create new classes by importing data from a .cvs file with the class name, lineweight, and pen colour. The script is able to import the name and linewights correctly without any problems. However, when it comes to setting the pen colour it doesn't work and either has just black and white, or semmingly random colours. And help into what i am missing here would be greatly appreciated. import csv import vs # Prompt the user to select the CSV file file_path = vs.GetFile() # Check if a file was selected if file_path: # Read the CSV file with open(file_path, mode='r') as file: csv_reader = csv.DictReader(file) for row in csv_reader: class_name = row['Class Name'] line_weight_mm = float(row['Line Thickness (mm)']) pen_r = int(row['Pen Color (R)']) pen_g = int(row['Pen Color (G)']) pen_b = int(row['Pen Color (B)']) # Convert line weight to mils line_weight_mils = round(line_weight_mm / 0.0254) # Create class and set attributes vs.NameClass(class_name) vs.SetClUseGraphic(class_name, True) vs.SetClLW(class_name, int(line_weight_mils)) # Set line weight vs.SetClPenFore(class_name, pen_r, pen_g, pen_b) vs.SetClPenBack(class_name, pen_r, pen_g, pen_b) vs.SetClFPat(class_name, 0) vs.AlrtDialog('Classes created successfully with correct line weights from the selected CSV file!') else: vs.AlrtDialog('No file was selected. Operation canceled.')
- 1 reply
-
- scripts
- vectorscript
-
(and 3 more)
Tagged with:
-
I've not used the cabinet tool previously and had always modelled joinery myself. Just used it for the first time. I can't work out how to remove the line/outlines of the component parts of the cabinet. Each draw-joint, door-joint, frame-joint etc is outlined with a black pen line. I've tried creating a new class with no lines, just fill. I've tried changing the material. Nothing changes it and I'm left with every joint outlined, and the joinery looking as if it's flatpack, not bespoke handmade joinery. Any ideas?Liv’s Room 7801CF952C1A.vwxLiv’s Room 7801CF952C1A.vwx Cabinet Lines.vwx
-
- cabinet
- cabinet tool
-
(and 3 more)
Tagged with:
-
Hi I like to use the Pen (thin distance) artistic render on my proyects. It would be neat if the render could calculate the pen thikness of the whole model and not just from each element. In the example A, you can see each element generates its pen thikness individually. It only works when I add all the solids together (example B) , but normally you don't add all your solids in a complex 3D model. It would be also great if the sketch render could also calculate its pen thikness through distance. joey