Model pattern extract to .pat file

Model pattern extract to .pat file

marcelTMFJS
Explorer Explorer
875 Views
5 Replies
Message 1 of 6

Model pattern extract to .pat file

marcelTMFJS
Explorer
Explorer

Hi,

 

I have created a detail item with a model line hatch which is 2mm apart. This should not be possible in revit? I dont know how i created this so perhaps someone can try to figure it out?

What i want is to upgrade this hatch (lines_test) to a plywood version but the parallel lines cant go closer then 50mm.

The detail item is attached.

0 Likes
Accepted solutions (1)
876 Views
5 Replies
Replies (5)
Message 2 of 6

RDAOU
Mentor
Mentor

@marcelTMFJS 

 

Using the native  options in revit not possible. It is however, using one of the following workarounds

 

Option 1: There are several apps free and paid that generate .pat patterns from Detail/Model lines. You can try Pyrevit. Place a bunch of lines 2mm away from one another ad convert them to a pattern. 

 

Option 2: Alternatively, grab any custom .pat and scale it down as much as possible using the scale factor...I believe it would go down to a as narrow as 1mm (limit for the shortest distance/line in revit is 0.8 I think)

 

Option 3: used a .pat from autocad, edited in Notepad and converted that to a model pattern for Revit

 

The question is though, what sort of output do u expect from such lines which ar 2mm away from one another...that would print/export almost as a solid fill

 

 

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 3 of 6

marcelTMFJS
Explorer
Explorer

Unfortunately revit 2024 with pyrevit consistently hangs when trying a simple line pattern with 2mm apart in pyrevit.

Revit has limits when trying to create a model line hatch, the distance between lines cant be less then 13mm.

I want to use model patterns inside detail items (line base) which then rotate with the detail item element. Somehow i got the model line hatch to work which is 2mm apart while the limit should be 13mm.

The 2mm is visible at scale 1:5 which we use for detailing

0 Likes
Message 4 of 6

RDAOU
Mentor
Mentor

@marcelTMFJS 

 

You asked how it could have been done, and the workarounds I know of are the ones in the previous reply.

 

In a model pattern, yes 13mm is what it offers as the min spacing but if you force code it in a .pat it would be like twisting ones arm. It works, but then when users start using such patterns on noncompatible scales, issues start to surface. 

 

You do not need to use PyRevit in 2024. Use it on a different or earlier version, or don't use it at all. A simple Google or ChatGPT search will give you at least ten pattern generator apps. Unfortunately, I can't do that and paste them here, as I don't like advertising any.

 

 

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 5 of 6

marcelTMFJS
Explorer
Explorer

Thank you for the tips.

I got it to work somehow. Made 2 filled regions model based and stacked it inside the detail item. Pyrevit did finish some patterns. See attached file

0 Likes
Message 6 of 6

azad.Nanva
Advisor
Advisor
Accepted solution

Your code maybe have some things wrong, use this one, I have another one too with variable space.

 

azadNanva_0-1738683100991.png

 

If it solves your problem, please click Accept to enhance the Forum.
0 Likes