OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Code Critique

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 08-11-2005, 12:41
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,787
Blog Entries: 11
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default A little help

Working on a contour script, and need a little help with my code. What I am trying to do is remove the inside objects that are created by the contour. From the code you can see my solution, but I don't think it is very good.
Sub RemoveInside()

Dim x As Double, y As Double, w As Double, h As Double
Dim cColor As New Color
Dim sContour As Shape
Dim sText As Shape


Set sText = ActiveLayer.CreateArtisticText(0, 0, "Sample Text", , , "Arial Black", 72)

Set sContour = sText.CreateContour(cdrContourOutside, 0.075, 1).Separate(1)
sContour.Outline.SetProperties 0.003, , cColor

sContour.GetBoundingBox x, y, w, h
Set sSel = ActivePage.SelectShapesFromRectangle(x + 0.075, y + 0.075, (x + w) - 0.075, (y + h) - 0.075, False)

End Sub
So two things I am struggling with, one I would like the contour to stay as one object, but I have to break it apart to delete the insides. And two is there any better way to do this then with the SelectShapesFrom...

Thanks for the insight,

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 20:33.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com