# Copy constrained sketches

**URL:** <https://discourse.mcneel.com/t/copy-constrained-sketches/147277>\
**Category:** Constraints\
**Created:** [August 31, 2022, 7:16pm UTC](https://discourse.mcneel.com/t/copy-constrained-sketches/147277 "2022-08-31T19:16:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan.galik](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ivan.galik/32/731821_2.png) [@ivan.galik](https://discourse.mcneel.com/u/ivan.galik)\
**Post date:** [August 31, 2022, 7:16pm UTC](https://discourse.mcneel.com/t/copy-constrained-sketches/147277/1 "2022-08-31T19:16:27Z")

</div>

how do i duplicate/copy whole constrained sketch?

---

<div class="post-metadata">

**Author:** ![Joshua\_Kennedy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joshua_kennedy/32/486545_2.png) [@Joshua\_Kennedy](https://discourse.mcneel.com/u/Joshua_Kennedy)\
**Post date:** [September 1, 2022, 10:14am UTC](https://discourse.mcneel.com/t/copy-constrained-sketches/147277/2 "2022-09-01T10:14:13Z")

</div>

That’s currently not possible, but it is on the roadmap. The issue is logged [here](https://mcneel.myjetbrains.com/youtrack/issue/RH-66905/Constraints-copy-constraints-with-geometry). Do you mind showing what kind of sketches you’ve been making? Also, have you run into any issues?

---

<div class="post-metadata">

**Author:** ![Juan\_Gallo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/juan_gallo/32/542095_2.png) [@Juan\_Gallo](https://discourse.mcneel.com/u/Juan_Gallo)\
**Post date:** [September 1, 2022, 11:37am UTC](https://discourse.mcneel.com/t/copy-constrained-sketches/147277/3 "2022-09-01T11:37:40Z")

</div>

i was just playing with it yesterday. I wanted to create constrained crosssection of road concrete slab bridge with cornices. But its actually more complex that. There are conditions like if some vertical distance is less that 55mm than the slope changes to achieve at least 55mm between two points. So i abandoned it because conditions are not in scope of this. Another area where i want to try it is drawing railway loading gauges but its also more complex because some dimensions are dependent on horizontal alignment and radii of the track. For my applications everything seems to be more complex than simple constrained geometry can provide. ☹ For me constrained geometry with variables combined with grasshopper definition and wrapped inside parametric block is probably only way how to achieve rather complicated things my profession demands.

---

<div class="post-metadata">

**Author:** ![Juan\_Gallo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/juan_gallo/32/542095_2.png) [@Juan\_Gallo](https://discourse.mcneel.com/u/Juan_Gallo)\
**Post date:** [September 1, 2022, 11:46am UTC](https://discourse.mcneel.com/t/copy-constrained-sketches/147277/4 "2022-09-01T11:46:08Z")

</div>

Now i am thinking what could really work. Gh is too complicated for creating constrained sketches so: Constrained sketches could be loaded into gh (possibly internalized and bakable back into rhino). Then Gh is great to actually move the geometry with changing variables of the sketch and interaction with other geometry. Lastly GH could bake the whole definition as parametric block (like visual arq has done it slready) maybe combined with a gh player to actuaĺy provide simple way for users to create complex geometry. Concrete example: I would draw constrained sketches with dimensions as names variables for different railway loading gauges. I would load those into gh definition and created script which would change variables according to other dependancies. Last thing i would create gh player script where first you would pick loading gauge type, then click on curve from which radii would be read (and variables of constrained sketch modified) and lastly swept 3d shape of parametric loading gauge along track axis would be created. For now its possible to do this in pure gh but constrained sketches could ease the difficulty creating constrained sketches from sletcj inside gh.

---

<div class="post-metadata">

**Author:** ![Joshua\_Kennedy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joshua_kennedy/32/486545_2.png) [@Joshua\_Kennedy](https://discourse.mcneel.com/u/Joshua_Kennedy)\
**Post date:** [September 8, 2022, 12:00pm UTC](https://discourse.mcneel.com/t/copy-constrained-sketches/147277/5 "2022-09-08T12:00:30Z")

</div>

> [@Juan\_Gallo](#):
>
> I wanted to create constrained crosssection of road concrete slab bridge with cornices.

> [@Juan\_Gallo](#):
>
> Another area where i want to try it is drawing railway loading gauges but its also more complex because some dimensions are dependent on horizontal alignment and radii of the track.

Those sound like they could potentially be possible, either now or at some point. Can you attach screenshots describing what needs done as well as the files so I can take a closer?

> [@Juan\_Gallo](#):
>
> For me constrained geometry with variables

I hope to get to this soon. It’s logged [here](https://mcneel.myjetbrains.com/youtrack/issue/RH-68451/).

> [@Juan\_Gallo](#):
>
> Gh is too complicated for creating constrained sketches so: Constrained sketches could be loaded into gh (possibly internalized and bakable back into rhino). Then Gh is great to actually move the geometry with changing variables of the sketch and interaction with other geometry.

I’ve been thinking along similar lines as well. Here soon I’ll hopefully have some examples to share.

---

<div class="post-metadata">

**Author:** ![ivan.galik](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ivan.galik/32/731821_2.png) [@ivan.galik](https://discourse.mcneel.com/u/ivan.galik)\
**Post date:** [September 8, 2022, 12:24pm UTC](https://discourse.mcneel.com/t/copy-constrained-sketches/147277/6 "2022-09-08T12:24:07Z")

</div>

this is typical problem. you are looking at part of road bridge section. encircled is a conditional constrain with exact slope which createst vertical distance but if its too little then some other distance overrides the slope…

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/6/f/76fb6cd92307beaf26b68c058d2f7679db6180f8.png)
