高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】achatchpatterntype customdefined
achatchpatterntype customdefined
achatchpatterntype customdefined
is it possible with directdwg activex to create vectorhatches which are defined in an external pat file
thanks
franz
yes, it is possible ( at least in upcomming release). you should set support path to folder where pattern located and then you could create new pattern:
dim oapp as iacadapplication
dim odb as iacaddatabase
dim hatchobj as iacadhatch
.......
oapp.preferences.files.supportpath = "c:\myapp\patterns\"
' define the hatch
patternname = "myown"
patterntype = achatchpatterntypecustomdefined
bassociativity = true
' create the associative hatch object
set hatchobj = odb.modelspace.addhatch(patterntype, patternname, bassociativity)
.......
myown.pat file locates in 'c:\myapp\patterns\'
|