Skip to main content
Participant
October 27, 2008
Question

Win/CS2/C# (COM) Rectangle with one rounded corner

  • October 27, 2008
  • 2 replies
  • 512 views
How do I draw a rectangle with 1 rounded corner?
This topic has been closed for replies.

2 replies

Known Participant
October 27, 2008
Hi SomeDude,

Take a look at the CornerEffects.vbs (or .jsx) example script. It does exactly what you want, and it's possible that you could port it to C#.

By the way, C# is not a particularly good language to use for InDesign automation. You can save yourself a great deal of pain by using one of the supported languages, such as VBScript or JavaScript.

Thanks,

Ole
Peter Kahrel
Community Expert
Community Expert
October 27, 2008
You could draw a rectangle and a circle, then position them such that pathfinder creates a rectangle with one rounded corner. See http://indesign-faq.de/index.php/komplizierte-callouts/ -- the pictures tell the story, no need to know German.

The other possibility is to give all path points, then set the entirePath property of a graphics line.

Peter