Skip to content

Instantly share code, notes, and snippets.

@danielkrajnik
danielkrajnik / Rhino-Macro-PDF-hatches-to-srfs
Created November 18, 2021 18:28
Convert hatches imported from a pdf file into trimmed surfaces
import rhinoscriptsyntax as rs
#get current color
hatchId = rs.GetObject(
"Pick one hatch", filter=65536, preselect=True, select=True,
subobjects=False)
color = rs.ObjectColor(hatchId)
#run macro
macro = """
@danielkrajnik
danielkrajnik / Rhino-Macro-PDF-hatches-to-srfs
Last active November 18, 2021 15:53
Convert hatches imported from a pdf file into trimmed surfaces
selcolor
invert
hide
selprev
dupborder
invert
delete
selall
planarsrf
delete
{"lastUpload":"2020-12-23T14:54:47.368Z","extensionVersion":"v3.4.3"}