PhotoCAD V1.5.0
The long-awaited version update is here, and the software will support more concise design syntax and more efficient design methods, while normalizing some ambiguous content.
When building pcell, you can define the class of the design device without using the decorator
@fp.pcell_class(band= "C"). Instead, you can specify something like:class RingResonator(PCell, band="C")when defining the class.When building the pcell, the decorator @dataclass and its corresponding simplified notation, please refer to
example_pcell_dataclass_with_final.pyandexample_pcell_dataclass_with_final.pyin examples of gpdk; Simplified writing can cause some ides to fail to provide automatic code completion when code is written.When defining the pcell parameter, there is no need to use the
as_field( )method.The newly added process layer switching function allows users to quickly define process information through CSV files and switch the currently used process information to custom process information through simple operation. Please refer to Chapter 4, Section 5 of the PhotoCAD User Manual.
Updated
wg.pyfile; The function ofwg.pyin technology can generate awg.csvfile by running the file, so that users can quickly view the waveguide and bend information corresponding to each waveguide type. Please refer to Section 5 of Chapter 4 of the PhotoCAD User Manual.Added a simplified way to write
fp.g.path:fp.path, which currently has the same functionality for both writing methods.Correct
fp.el.Rect( ), The parameter name of the center point of the receiving rectangle in the method was changed from origin to center, and the origin parameter can still be used; Providebottom_leftparameters; Enhancing thecorner_radiusparameter to receive a value of 0, such as assigning it to[0,10,0,0]will result in a rectangle with rounded corners in the lower left corner.The
fp.el.Labelmethod supports the anchor parameter to align labels from the start, center, or end point.The disabled attribute is added to Pin and Port.
Updated
fp.until_x,fp.until_y,fp.START,fp.PREV,fp.ENDmethod inwaylines. And simplify the writing of these complex expressions, no need to write'( )'later.import_from_jsonsupports layer mapped to(layer, xtype)instead of layer name(eg.TECH.LAYER.FWG_CORE).Enhanced the functionality of minor SDL.