Message 1 of 7
Hatch - moving in model space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I wrote a program that trys to move all the entities in a dwg file by calculating a grid transformation for each point in each entity. For example to move a pline
Code: Case Is = "AcDb2dPolyline"
Set o2DP = oEnt
retCoord = o2DP.Coordinates
For j% = 0 To UBound(retCoord) Step 3
yaa# = retCoord(j%)
xaa# = retCoord(j% + 1)
Call UTMCartGeo(yaa#, xaa#, latutm#, longutm#)
h# = Val(TextBoxH.Text)
Call UTMGEOtoITMGEO(latutm#, longutm#, h#, pp#, ll#)
Call ITMGeotoITMCart(pp#, ll#, e#, n#)
retCoord(j%) = e#
retCoord(j% + 1) = n#
Next j%
o2DP.Coordinates = retCoord
My problem is moving hatch entities. I haven't succeeded in finding equivalent code to move the hatch entities. I did find another post here, but I still don't get it.
Thank you
John
I wrote a program that trys to move all the entities in a dwg file by calculating a grid transformation for each point in each entity. For example to move a pline
Code: Case Is = "AcDb2dPolyline"
Set o2DP = oEnt
retCoord = o2DP.Coordinates
For j% = 0 To UBound(retCoord) Step 3
yaa# = retCoord(j%)
xaa# = retCoord(j% + 1)
Call UTMCartGeo(yaa#, xaa#, latutm#, longutm#)
h# = Val(TextBoxH.Text)
Call UTMGEOtoITMGEO(latutm#, longutm#, h#, pp#, ll#)
Call ITMGeotoITMCart(pp#, ll#, e#, n#)
retCoord(j%) = e#
retCoord(j% + 1) = n#
Next j%
o2DP.Coordinates = retCoord
My problem is moving hatch entities. I haven't succeeded in finding equivalent code to move the hatch entities. I did find another post here, but I still don't get it.
Thank you
John