我使用db_create_pin添加引脚。
函数定义如下:decl newPin = db_create_pin(context,x,y [,angle,layerId,termNum,termName,termType]);
在我的例子中,参数设置如下:db_create_pin(context,x,y,NULL,layerId,NULL,termName);
我认为角度是90度。
但事实证明,如果我将角度指定为NULL,则引脚角度计算过于简单。
db_create_pin行为与内置插入引脚工具略有不同。
以上来自于谷歌翻译
以下为原文
i use db_create_pin to add the pin.
the function definition is as follows:
decl newPin = db_create_pin(context, x, y [, angle, layerId, termNum, termName, termType] );
in my case, the parameter settings are like this:
db_create_pin(context, x, y, NULL, layerId, NULL, termName);
i thought the angle would be 90 degree. but it turns out the pin angle calculation is too simple if i specify angle to NULL.
the db_create_pin behaviors slight differently from the built-in insert pin tools.